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:
Laurent Bachelier 2014-10-06 14:23:20 +02:00
commit 74a4ef6723
73 changed files with 499 additions and 442 deletions

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python
from __future__ import print_function
# Hint: use this script with file:///path/to/local/modules/ in sources.list
# if you want to correctly check all modules.
@ -22,6 +23,6 @@ for name, backend in weboob.modules_loader.loaded.iteritems():
backends_without_icons.append(name)
if backends_without_tests:
print 'Modules without tests: %s' % backends_without_tests
print('Modules without tests: %s' % backends_without_tests)
if backends_without_icons:
print 'Modules without icons: %s' % backends_without_icons
print('Modules without icons: %s' % backends_without_icons)