diff options
| author | bwarsaw | 2006-04-17 13:10:09 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-04-17 13:10:09 +0000 |
| commit | 953d9bff95f70b66b1b6c04340959185a11c3d10 (patch) | |
| tree | bd6aa3c6d30bcace2d628da71bc121f751ff1be2 /Mailman/UserDesc.py | |
| parent | 0ed815a216c7bb6f820cfdf99fc8d31bcfd19fc0 (diff) | |
| download | mailman-953d9bff95f70b66b1b6c04340959185a11c3d10.tar.gz mailman-953d9bff95f70b66b1b6c04340959185a11c3d10.tar.zst mailman-953d9bff95f70b66b1b6c04340959185a11c3d10.zip | |
Diffstat (limited to 'Mailman/UserDesc.py')
| -rw-r--r-- | Mailman/UserDesc.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Mailman/UserDesc.py b/Mailman/UserDesc.py index ec7db748e..12722f819 100644 --- a/Mailman/UserDesc.py +++ b/Mailman/UserDesc.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2004 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2006 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -12,14 +12,12 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. """User description class/structure, for ApprovedAddMember and friends.""" -from types import UnicodeType - - class UserDesc: def __init__(self, address=None, fullname=None, password=None, @@ -59,9 +57,9 @@ class UserDesc: digest = 'yes' language = getattr(self, 'language', 'n/a') # Make sure fullname and password are encoded if they're strings - if isinstance(fullname, UnicodeType): + if isinstance(fullname, unicode): fullname = fullname.encode('ascii', 'replace') - if isinstance(password, UnicodeType): + if isinstance(password, unicode): password = password.encode('ascii', 'replace') return '<UserDesc %s (%s) [%s] [digest? %s] [%s]>' % ( address, fullname, password, digest, language) |
