Skip to content

Commit 9bcbbe7

Browse files
committed
Python 3.5.1
Wrote cpp2python running on Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32 Included .gitignore for JetBrains PyCharm
1 parent 37d6e3f commit 9bcbbe7

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)