diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-11-04 07:29:17 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-11-04 07:29:17 (GMT) |
commit | 54540ec917a47c39328e87b1f4ddf83adeca2f5c (patch) | |
tree | d4cef1dbff88af3933fd0cb4572d272e77a9b9e7 /Lib/getpass.py | |
parent | c53ae589548e37c4bd86f03294a27667978a51f8 (diff) | |
download | cpython-54540ec917a47c39328e87b1f4ddf83adeca2f5c.zip cpython-54540ec917a47c39328e87b1f4ddf83adeca2f5c.tar.gz cpython-54540ec917a47c39328e87b1f4ddf83adeca2f5c.tar.bz2 |
Remove redundant imports.
Diffstat (limited to 'Lib/getpass.py')
-rw-r--r-- | Lib/getpass.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py index dc02bd1..0044742 100644 --- a/Lib/getpass.py +++ b/Lib/getpass.py @@ -72,7 +72,7 @@ def unix_getpass(prompt='Password: ', stream=None): finally: termios.tcsetattr(fd, tcsetattr_flags, old) stream.flush() # issue7208 - except termios.error as e: + except termios.error: if passwd is not None: # _raw_input succeeded. The final tcsetattr failed. Reraise # instead of leaving the terminal in an unknown state. @@ -145,8 +145,6 @@ def getuser(): """ - import os - for name in ('LOGNAME', 'USER', 'LNAME', 'USERNAME'): user = os.environ.get(name) if user: |