summaryrefslogtreecommitdiffstats
path: root/Lib/getpass.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/getpass.py')
-rw-r--r--Lib/getpass.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py
index eefb1f9..e96491f 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: