We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a598bc4 commit c731723Copy full SHA for c731723
1 file changed
Lib/getpass.py
@@ -15,6 +15,8 @@ def getpass(prompt='Password: '):
15
16
On Windows, this calls win_getpass(prompt) which uses the
17
msvcrt module to get the same effect.
18
+
19
+ On the Mac EasyDialogs.AskPassword is used, if available.
20
21
"""
22
@@ -29,7 +31,12 @@ def getpass(prompt='Password: '):
29
31
try:
30
32
import msvcrt
33
except ImportError:
- return default_getpass(prompt)
34
+ try:
35
+ from EasyDialogs import AskPassword
36
+ except ImportError:
37
+ return default_getpass(prompt)
38
+ else:
39
+ return AskPassword(prompt)
40
else:
41
return win_getpass(prompt)
42
0 commit comments