diff options
Diffstat (limited to 'Lib/copy_reg.py')
-rw-r--r-- | Lib/copy_reg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/copy_reg.py b/Lib/copy_reg.py index f4661ed..58d462b 100644 --- a/Lib/copy_reg.py +++ b/Lib/copy_reg.py @@ -43,7 +43,8 @@ def _reconstructor(cls, base, state): obj = object.__new__(cls) else: obj = base.__new__(cls, state) - base.__init__(obj, state) + if base.__init__ != object.__init__: + base.__init__(obj, state) return obj _HEAPTYPE = 1<<9 |