Skip to content

Commit 6558d0d

Browse files
Merge pull request #2 from ericknavarro97/fix/setup
Fix/setup
2 parents 0e18364 + 761755f commit 6558d0d

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ before_install:
99
install:
1010
- pip install pycurl flake8
1111
- pip install mock
12+
- pip install six
1213
- python setup.py install
1314
script:
1415
- python -W always setup.py test

openpay/util.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
21
import logging
32
import sys
43

4+
import six
5+
56
logger = logging.getLogger('stripe')
67

78
__all__ = ['utf8']
89

910

1011
def utf8(value):
11-
if isinstance(value, unicode) and sys.version_info < (3, 0):
12+
if isinstance(value, six.text_type) and sys.version_info < (3, 0):
1213
return value.encode('utf-8')
1314
else:
1415
return value

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@
4343
package_data={'openpay': ['data/ca-certificates.crt', '../VERSION']},
4444
install_requires=install_requires,
4545
test_suite='openpay.test.all',
46-
use_2to3=True,
46+
# use_2to3=True,
4747
)

0 commit comments

Comments
 (0)