mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Get rig of EnvironmentError (#16705)
This commit is contained in:
parent
6eda46de99
commit
3438fa496d
16 changed files with 34 additions and 35 deletions
|
@ -47,7 +47,7 @@ def unix_getpass(prompt='Password: ', stream=None):
|
|||
input = tty
|
||||
if not stream:
|
||||
stream = tty
|
||||
except EnvironmentError as e:
|
||||
except OSError as e:
|
||||
# If that fails, see if stdin can be controlled.
|
||||
try:
|
||||
fd = sys.stdin.fileno()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue