diff options
-rw-r--r-- | Lib/getpass.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py index eefb1f9558..e96491f90b 100644 --- a/Lib/getpass.py +++ b/Lib/getpass.py @@ -104,7 +104,10 @@ def getuser(): # Bind the name getpass to the appropriate function try: import termios -except ImportError: + # it's possible there is an incompatible termios from the + # McMillan Installer, make sure we have a UNIX-compatible termios + termios.tcgetattr, termios.tcsetattr +except (ImportError, AttributeError): try: import msvcrt except ImportError: |