mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
parent
7efa3b8242
commit
319d58d599
3 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue