[iniparse] r137 committed - Added __reduce_ex__() and __getnewargs__() functions for pickle ver 2....

0 views
Skip to first unread message

inip...@googlecode.com

unread,
May 7, 2010, 1:51:23 AM5/7/10
to iniparse...@googlegroups.com
Revision: 137
Author: psoberoi
Date: Thu May 6 22:50:17 2010
Log: Added __reduce_ex__() and __getnewargs__() functions for pickle ver 2.
fixes issue 20. (hopefully it's really fixed this time)

http://code.google.com/p/iniparse/source/detail?r=137

Modified:
/trunk/iniparse/config.py

=======================================
--- /trunk/iniparse/config.py Tue May 4 22:32:02 2010
+++ /trunk/iniparse/config.py Thu May 6 22:50:17 2010
@@ -70,7 +70,10 @@
self.__dict__.update(state)

__reduce__ = object.__reduce__
- __reduce_ex__ = None
+ __reduce_ex__ = object.__reduce_ex__
+
+ def __getnewargs__(self):
+ return ()

class Undefined(object):
"""Helper class used to hold undefined names until assignment.

--
To post to this group, send email to iniparse...@googlegroups.com
To unsubscribe from this group, send email to iniparse-commi...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/iniparse-commits?hl=en
Reply all
Reply to author
Forward
0 new messages