commit | 319d58d599cdc75b27b5518b2c4ab9021655c6f0 | [log] [tgz] |
---|---|---|
author | R David Murray <rdmurray@bitdance.com> | Mon Apr 08 01:48:22 2013 -0400 |
committer | R David Murray <rdmurray@bitdance.com> | Mon Apr 08 01:48:22 2013 -0400 |
tree | 08f4dcda933fe67250f79916056ff978a11500de | |
parent | 7efa3b8242771f5e63ffaab7bd184e1a5c12c429 [diff] [blame] |
#17484: add tests for getpass. Patch by Thomas Fenzl.
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 @@ """ 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)