Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ before_install:
install:
- pip install pycurl flake8
- pip install mock
- pip install six
- python setup.py install
script:
- python -W always setup.py test
5 changes: 3 additions & 2 deletions openpay/util.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@

import logging
import sys

import six

logger = logging.getLogger('stripe')

__all__ = ['utf8']


def utf8(value):
if isinstance(value, unicode) and sys.version_info < (3, 0):
if isinstance(value, six.text_type) and sys.version_info < (3, 0):
return value.encode('utf-8')
else:
return value
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@
package_data={'openpay': ['data/ca-certificates.crt', '../VERSION']},
install_requires=install_requires,
test_suite='openpay.test.all',
use_2to3=True,
# use_2to3=True,
)