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
|
|
@ -18,6 +18,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import urllib
|
||||
import mechanize
|
||||
|
|
@ -85,7 +86,7 @@ class HelloBank(Browser):
|
|||
|
||||
accounts = self.page.get_accounts()
|
||||
if len(accounts) == 0:
|
||||
print 'no accounts'
|
||||
print('no accounts')
|
||||
# oops, no accounts? check if we have not exhausted the allowed use
|
||||
# of this password
|
||||
for img in self.document.getroot().cssselect('img[align="middle"]'):
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from decimal import Decimal
|
||||
|
||||
|
|
@ -66,7 +67,7 @@ class AccountsList(Page):
|
|||
l.append(account)
|
||||
|
||||
if len(l) == 0:
|
||||
print 'no accounts'
|
||||
print('no accounts')
|
||||
# oops, no accounts? check if we have not exhausted the allowed use
|
||||
# of this password
|
||||
for img in self.document.getroot().cssselect('img[align="middle"]'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue