diff options
| author | bwarsaw | 1999-01-09 06:16:31 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-01-09 06:16:31 +0000 |
| commit | ccd72de397cf0ab6996210a33228e7e0acb72603 (patch) | |
| tree | abc8d34d1236a999e5094bc8af643efe6ae31398 /bin | |
| parent | 29d542c17acdee1b692dc99e3ed26cf2ae5c59b8 (diff) | |
| download | mailman-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-x | bin/mmsitepass | 6 |
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): |
