summaryrefslogtreecommitdiff
path: root/Mailman/htmlformat.py
diff options
context:
space:
mode:
authorbwarsaw2002-02-23 05:48:59 +0000
committerbwarsaw2002-02-23 05:48:59 +0000
commit000ec4ec5da9fce31b01250382e6569c51a3287b (patch)
tree8df1a2e052d601a68715e9edee039aece8fbe726 /Mailman/htmlformat.py
parent8555a083770654035416ab447ed1d87de4170aab (diff)
downloadmailman-000ec4ec5da9fce31b01250382e6569c51a3287b.tar.gz
mailman-000ec4ec5da9fce31b01250382e6569c51a3287b.tar.zst
mailman-000ec4ec5da9fce31b01250382e6569c51a3287b.zip
__setstate__(): When unpickling Message instances, check to make sure
they have a _charset attribute, adding a default one if not. This should fix a problem I think Dan Mick had, which I believe is caused by a Message object being pickled w/ version 0.96 of the email package, and unpickled by 0.97/1.1 of the email package. Why doesn't this go into email.Message.Message? Because I don't want to clutter its code up with something that should both be transient and assumes that Message is pickled. Mailman seems more responsible for the pickle consistency (if every Python class that grew an attribute had to have such schema migration code, we'd be up sh*ts creek).
Diffstat (limited to 'Mailman/htmlformat.py')
0 files changed, 0 insertions, 0 deletions