diff options
Diffstat (limited to 'Mailman/MailList.py')
| -rw-r--r-- | Mailman/MailList.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index 3cf5f45a3..95c20e1aa 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -113,6 +113,12 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, if func: func(self) + def __getstate__(self): + d = self.__dict__.copy() + # Never pickle our lock! + del d['_MailList__lock'] + return d + def __getattr__(self, name): # Because we're using delegation, we want to be sure that attribute # access to a delegated member function gets passed to the |
