summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-13 15:30:22 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-13 15:30:22 (GMT)
commitf9f48812d007cd44c0155f953d22cc9164d33b6f (patch)
tree80390915872fd2562ff0425b987792816fa82cbb /Lib
parentbfbc18dbf93d0575bf1d7857625dd056638d95a3 (diff)
downloadcpython-f9f48812d007cd44c0155f953d22cc9164d33b6f.zip
cpython-f9f48812d007cd44c0155f953d22cc9164d33b6f.tar.gz
cpython-f9f48812d007cd44c0155f953d22cc9164d33b6f.tar.bz2
Remove two redundant statements (PyChecker).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/getpass.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py
index 2b1f6b2..e811890 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)