diff options
author | Guido van Rossum <guido@python.org> | 2007-04-02 23:55:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-04-02 23:55:37 (GMT) |
commit | ab8802a4f75336ef9c65c5958c480609c5c92fb3 (patch) | |
tree | bcebdb66a1746228365deb9496a633a8970711da /Lib/copy_reg.py | |
parent | 01a807db2a4b2d39d8e9473e658b908ff58e1058 (diff) | |
download | cpython-ab8802a4f75336ef9c65c5958c480609c5c92fb3.zip cpython-ab8802a4f75336ef9c65c5958c480609c5c92fb3.tar.gz cpython-ab8802a4f75336ef9c65c5958c480609c5c92fb3.tar.bz2 |
Fix warnings about object.__init__() signature.
Two (test_array and test_descr) were bug IMO; the third (copy_reg)
is a work-around which recognizes that object.__init__() doesn't do
anything.
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 f87c50f..0dd94cf 100644 --- a/Lib/copy_reg.py +++ b/Lib/copy_reg.py @@ -48,7 +48,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 |