diff Lib/getpass.py @ 73345:fa82071bb7e1

Remove redundant imports.
author Florent Xicluna <florent.xicluna@gmail.com>
date Fri, 04 Nov 2011 08:29:17 +0100
parents c177faafec51
children 061e9a439f54
line wrap: on
line diff
--- a/Lib/getpass.py	Fri Nov 04 08:25:54 2011 +0100
+++ b/Lib/getpass.py	Fri Nov 04 08:29:17 2011 +0100
@@ -72,7 +72,7 @@
             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 @@
 
     """
 
-    import os
-
     for name in ('LOGNAME', 'USER', 'LNAME', 'USERNAME'):
         user = os.environ.get(name)
         if user: