[Mailman-Developers] Install clarification

Christian Tismer tismer@appliedbiometrics.com
Wed, 03 Mar 1999 17:37:58 +0100


Another small problem:

newlist has been changed somewhere between 1.0b7 and 1.0b9
in the wrong way, and the change has obviously not been 
tested!

###before (1.0b7):

import sys, os, string
import time
import getpass
import paths                                      # path hacking
from Mailman import MailList
from Mailman import Utils
from Mailman import mm_cfg
from Mailman.Crypt import crypt

###After (1.0b9):

import sys, os, string
import time
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
from Mailman import mm_cfg
from Mailman.Crypt import crypt


The "import pahs" must go *before* the try..except

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer@appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaiserin-Augusta-Allee 101   :    *Starship* http://starship.python.net
10553 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     we're tired of banana software - shipped green, ripens at home