Update of /cvsroot/mailman/mailman/Mailman/Commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv886/Mailman/Commands
Modified Files:
Tag: Release_2_1-maint
cmd_subscribe.py
Log Message:
Fix UnicodeDecodeError and UnicodeEncodeError to UnicodeError.
Both are introduced in Python2.3. UnicodeError catches both.
Index: cmd_subscribe.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Commands/cmd_subscribe.py,v
retrieving revision 2.2.2.1
retrieving revision 2.2.2.2
diff -u -d -r2.2.2.1 -r2.2.2.2
--- cmd_subscribe.py 24 Jan 2005 00:16:54 -0000 2.2.2.1
+++ cmd_subscribe.py 8 May 2005 12:32:27 -0000 2.2.2.2
@@ -88,7 +88,7 @@
h = make_header(decode_header(realname))
# BAW: in Python 2.2, use just unicode(h)
realname = h.__unicode__()
- except UnicodeDecodeError:
+ except UnicodeError:
realname = u''
# Coerce to byte string if uh contains only ascii
try:
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org