summaryrefslogtreecommitdiffstats
path: root/Lib/getpass.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-04-08 05:48:22 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-04-08 05:48:22 (GMT)
commit319d58d599cdc75b27b5518b2c4ab9021655c6f0 (patch)
tree08f4dcda933fe67250f79916056ff978a11500de /Lib/getpass.py
parent7efa3b8242771f5e63ffaab7bd184e1a5c12c429 (diff)
downloadcpython-319d58d599cdc75b27b5518b2c4ab9021655c6f0.zip
cpython-319d58d599cdc75b27b5518b2c4ab9021655c6f0.tar.gz
cpython-319d58d599cdc75b27b5518b2c4ab9021655c6f0.tar.bz2
#17484: add tests for getpass.
Patch by Thomas Fenzl.
Diffstat (limited to 'Lib/getpass.py')
-rw-r--r--Lib/getpass.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py
index 53689e9..6ec6c788 100644
--- a/Lib/getpass.py
+++ b/Lib/getpass.py
@@ -40,6 +40,7 @@ def unix_getpass(prompt='Password: ', stream=None):
"""
fd = None
tty = None
+ passwd = None
try:
# Always try reading and writing directly on the tty first.
fd = os.open('/dev/tty', os.O_RDWR|os.O_NOCTTY)