summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorbwarsaw1999-01-09 06:16:31 +0000
committerbwarsaw1999-01-09 06:16:31 +0000
commitccd72de397cf0ab6996210a33228e7e0acb72603 (patch)
treeabc8d34d1236a999e5094bc8af643efe6ae31398 /bin
parent29d542c17acdee1b692dc99e3ed26cf2ae5c59b8 (diff)
downloadmailman-ccd72de397cf0ab6996210a33228e7e0acb72603.tar.gz
mailman-ccd72de397cf0ab6996210a33228e7e0acb72603.tar.zst
mailman-ccd72de397cf0ab6996210a33228e7e0acb72603.zip
If we can't import getpass from the standard Python installation,
we're probably running under Python 1.5, so get our own copy of getpass.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mmsitepass6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/mmsitepass b/bin/mmsitepass
index 594aea2ed..1cfd92a1b 100755
--- a/bin/mmsitepass
+++ b/bin/mmsitepass
@@ -24,7 +24,11 @@ places that a list users password can be used."""
import sys
import paths
-import getpass
+try:
+ import getpass
+except ImportError:
+ # we must be in Python 1.5, which didn't have the getpass module
+ from Mailman.pythonlib import getpass
from Mailman import MailList
def main(argv):