Mod by Jack Jansen: on Macintosh, use EasyDialogs.GetPassword if it
exists.
diff --git a/Lib/getpass.py b/Lib/getpass.py
index 66b1aee..952e023 100644
--- a/Lib/getpass.py
+++ b/Lib/getpass.py
@@ -15,6 +15,8 @@
 
 	On Windows, this calls win_getpass(prompt) which uses the
 	msvcrt module to get the same effect.
+	
+	On the Mac EasyDialogs.AskPassword is used, if available.
 
 	"""
 
@@ -29,7 +31,12 @@
 		try:
 			import msvcrt
 		except ImportError:
-			return default_getpass(prompt)
+			try:
+				from EasyDialogs import AskPassword
+			except ImportError:
+				return default_getpass(prompt)
+			else:
+				return AskPassword(prompt)
 		else:
 			return win_getpass(prompt)