Skip to content

Commit

Permalink
Merge pull request #2 from ericknavarro97/fix/setup
Browse files Browse the repository at this point in the history
Fix/setup
  • Loading branch information
ericknavarro97 authored Aug 7, 2024
2 parents 0e18364 + 761755f commit 6558d0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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,
)

0 comments on commit 6558d0d

Please sign in to comment.