]> granicus.if.org Git - python/commitdiff
Remove two redundant statements (PyChecker).
authorGuido van Rossum <guido@python.org>
Mon, 13 Aug 2001 15:30:22 +0000 (15:30 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 13 Aug 2001 15:30:22 +0000 (15:30 +0000)
Lib/getpass.py

index 2b1f6b2625b64ccc28407deb55de5f08a203c487..e811890e1e7e83a819d9cf5e488f57435fc73c70 100644 (file)
@@ -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)