Mercurial > p > roundup > code
diff roundup/mailgw.py @ 5401:4cf48ff01e04
Python 3 preparation: replace raw_input uses.
The existing my_input in roundup/admin.py is moved to a new
roundup/anypy/my_input.py, which is then used in more places. Manual
patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 23:47:10 +0000 |
| parents | 831787cf6694 |
| children | 56c9bcdea47f |
line wrap: on
line diff
--- a/roundup/mailgw.py Tue Jul 24 23:16:09 2018 +0000 +++ b/roundup/mailgw.py Tue Jul 24 23:47:10 2018 +0000 @@ -101,6 +101,7 @@ import email.utils from .anypy.email_ import decode_header +from roundup.anypy.my_input import my_input from roundup import configuration, hyperdb, date, password, exceptions from roundup.mailer import Mailer, MessageSendError @@ -1372,7 +1373,7 @@ import getpass, imaplib, socket try: if not user: - user = raw_input('User: ') + user = my_input('User: ') if not password: password = getpass.getpass() except (KeyboardInterrupt, EOFError): @@ -1461,7 +1462,7 @@ poplib._MAXLINE = 100*1024 try: if not user: - user = raw_input('User: ') + user = my_input('User: ') if not password: password = getpass.getpass() except (KeyboardInterrupt, EOFError):
