[Email-SIG] email package 4.0a2
Tokio Kikuchi
tkikuchi at is.kochi-u.ac.jp
Mon Mar 6 07:14:28 CET 2006
Tokio Kikuchi wrote:
> Hi Barry,
>
> Barry Warsaw wrote:
>
>>I'm happy to announce the release of the email 4.0a2 standalone package.
>
>
>>There are also many bug fixes and updated documentation. More
>>information and links for downloading are available in the cheeseshop:
>>
>>http://cheeseshop.python.org/pypi/email/4.0a2
>
>
> I'm working on this to integrate into mailman-2.2. Look like working fine.
>
Oops, the unicode charset makes another problem.
--- email-4.0a2/email/message.py Mon Mar 6 04:58:33 2006
+++ email/message.py Mon Mar 6 14:59:04 2006
@@ -238,7 +238,7 @@
self.del_param('charset')
self._charset = None
return
- if isinstance(charset, str):
+ if isinstance(charset, str) or isinstance(charset, unicode):
charset = email.charset.Charset(charset)
if not isinstance(charset, email.charset.Charset):
raise TypeError(charset)
I'd still prefer charset name be stored in simple string not unicode.
--
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/
More information about the Email-SIG
mailing list