Sitelet https://github.com/andreikop/cpp2python/commit/b101c15352245eac52091abfd202d0dd8f088e38
Skip to content

Commit b101c15

Browse files
committed
Merge pull request #8 from wittrup/master
Python 3.5.1
2 parents 37d6e3f + 9bcbbe7 commit b101c15

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
*.pyc
22
build/
3+
.idea/
4+
cpp2python.egg-info/

‎cpp2python.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,11 @@ def main():
297297
'-h' in sys.argv or \
298298
'--version' in sys.argv or \
299299
'-v' in sys.argv:
300-
print help
300+
print(help)
301301
sys.exit(0)
302302
if len (sys.argv) != 2:
303-
print >> sys.stderr, 'Invalid parameters count. Must be 1'
304-
print help
303+
print('Invalid parameters count. Must be 1', file=sys.stderr)
304+
print(help)
305305
sys.exit(-1)
306306
if os.path.isdir(sys.argv[1]):
307307
for root, dirs, files in os.walk(sys.argv[1]):
@@ -313,7 +313,7 @@ def main():
313313
elif os.path.isfile(sys.argv[1]):
314314
process_file(sys.argv[1], sys.argv[1] + '.py')
315315
else:
316-
print >> sys.stderr, 'Not a file or directory', sys.argv[1]
316+
print('Not a file or directory', sys.argv[1], file=sys.stderr)
317317
sys.exit(-1)
318318

319319
if __name__ == '__main__':

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from distutils.core import setup
1+
from setuptools import setup
22
import cpp2python
33

44
setup(

0 commit comments

Comments
 (0)