Remove two redundant statements (PyChecker).
This commit is contained in:
parent
bfbc18dbf9
commit
f9f48812d0
|
@ -26,7 +26,6 @@ def unix_getpass(prompt='Password: '):
|
|||
except:
|
||||
return default_getpass(prompt)
|
||||
|
||||
getpass = default_getpass
|
||||
old = termios.tcgetattr(fd) # a copy to save
|
||||
new = old[:]
|
||||
|
||||
|
@ -70,7 +69,6 @@ def default_getpass(prompt='Password: '):
|
|||
def _raw_input(prompt=""):
|
||||
# A raw_input() replacement that doesn't save the string in the
|
||||
# GNU readline history.
|
||||
import sys
|
||||
prompt = str(prompt)
|
||||
if prompt:
|
||||
sys.stdout.write(prompt)
|
||||
|
|
Loading…
Reference in New Issue