Remove redundant imports.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user