From ae1a4a2ffdc8158a37e2f85d887d90c2c4f0ceeb Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Sat, 27 Feb 1999 18:05:43 +0000 Subject: Wrap import of getpass in try/except, and get it from Mailman.pythonlib if we're using Python 1.5 --- bin/newlist | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/newlist b/bin/newlist index f922df684..2737dd6b5 100755 --- a/bin/newlist +++ b/bin/newlist @@ -31,7 +31,11 @@ Note that list-names are forced to lowercase. import sys, os, string import time -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 import paths # path hacking from Mailman import MailList from Mailman import Utils -- cgit v1.3