Use the print function everywhere
python modernize.py --no-six -f libmodernize.fixes.fix_print -w With manual fixes as the import was put always on top.
This commit is contained in:
parent
d22656308a
commit
74a4ef6723
73 changed files with 499 additions and 442 deletions
|
|
@ -1,11 +1,13 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import print_function
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
import os
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print "Usage: %s SCRIPTNAME [args]" % sys.argv[0]
|
||||
print("Usage: %s SCRIPTNAME [args]" % sys.argv[0])
|
||||
sys.exit(1)
|
||||
else:
|
||||
script = sys.argv[1]
|
||||
|
|
@ -37,7 +39,7 @@ p = subprocess.Popen(
|
|||
stdout=subprocess.PIPE)
|
||||
s = p.communicate()
|
||||
if p.returncode != 0:
|
||||
print s[0]
|
||||
print(s[0])
|
||||
sys.exit(p.returncode)
|
||||
|
||||
if os.path.exists(script):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue