Mercurial > p > roundup > code
diff scripts/imapServer.py @ 5376:64b05e24dbd8
Python 3 preparation: convert print to a function.
Tool-assisted patch. It is possible that some "from __future__ import
print_function" are not in fact needed, if a file only uses print()
with a single string as an argument and so would work fine in Python 2
without that import.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 09:54:52 +0000 |
| parents | 939dce88cfc2 |
| children | 35ea9b1efc14 |
line wrap: on
line diff
--- a/scripts/imapServer.py Sat Jul 21 23:07:16 2018 +1000 +++ b/scripts/imapServer.py Tue Jul 24 09:54:52 2018 +0000 @@ -30,6 +30,7 @@ Add an option for changing the uid/gid of the running process. """ +from __future__ import print_function import getpass import logging import imaplib @@ -76,7 +77,7 @@ raise ValueError, 'Invalid Username' if not self.password: - print 'For server %s, user %s' % (self.server, self.username) + print('For server %s, user %s' % (self.server, self.username)) self.password = getpass.getpass() # password can be empty because it could be superceeded # by a later entry
