summaryrefslogtreecommitdiff
path: root/Lib/getpass.py
diff options
context:
space:
mode:
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 53689e964d..6ec6c78824 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)