Skip to content

Commit

Permalink
Port examples to Python 3 (#6210)
Browse files Browse the repository at this point in the history
Part of #6062
  • Loading branch information
Eric-Arellano authored and Stu Hood committed Jul 21, 2018
1 parent 6f9d4c9 commit a783046
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -8,8 +8,8 @@
from distutils.core import Extension


c_module = Extension(str('c_greet'), sources=[str('c_greet.c')])
cpp_module = Extension(str('cpp_greet'), sources=[str('cpp_greet.cpp')])
c_module = Extension(b'c_greet', sources=[b'c_greet.c'])
cpp_module = Extension(b'cpp_greet', sources=[b'cpp_greet.cpp'])

setup(
name='fasthello',
Expand Down
Expand Up @@ -14,7 +14,7 @@
# This is for testing purposes so we can assert that setup_requires is functioning
# correctly (because Pants swallows print statements).
if os.getenv('PANTS_TEST_SETUP_REQUIRES', ''):
output = [str(pycountry)]
output = [bytes(pycountry)]
output.extend(os.listdir(os.getenv('PYTHONPATH', '')))
raise Exception(str(output))

Expand Down

0 comments on commit a783046

Please sign in to comment.