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,4 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
|
@ -17,4 +19,4 @@ for dirpath, dirnames, filenames in os.walk(root):
|
|||
if not os.path.exists(os.path.join(dirpath, filename[:-1])):
|
||||
os.unlink(os.path.join(dirpath, filename))
|
||||
if verbose:
|
||||
print os.path.join(dirpath, filename)
|
||||
print(os.path.join(dirpath, filename))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue