File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11* .pyc
22build /
3+ .idea /
4+ cpp2python.egg-info /
Original file line number Diff line number Diff 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
319319if __name__ == '__main__' :
Original file line number Diff line number Diff line change 1- from distutils . core import setup
1+ from setuptools import setup
22import cpp2python
33
44setup (
You can’t perform that action at this time.
0 commit comments