From: Guido van Rossum Date: Mon, 13 Aug 2001 15:30:22 +0000 (+0000) Subject: Remove two redundant statements (PyChecker). X-Git-Tag: v2.2a3~586 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9f48812d007cd44c0155f953d22cc9164d33b6f;p=thirdparty%2FPython%2Fcpython.git Remove two redundant statements (PyChecker). --- diff --git a/Lib/getpass.py b/Lib/getpass.py index 2b1f6b2625b6..e811890e1e7e 100644 --- a/Lib/getpass.py +++ b/Lib/getpass.py @@ -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)