From 4a475391ecb01cac528319ea269c35ae47c4670c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Mon, 9 Mar 2020 14:53:02 +0200 Subject: [PATCH] Remove __reduce__ as it was only needed because of __new__. --- src/tblib/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tblib/__init__.py b/src/tblib/__init__.py index 7996361..b0c0a85 100644 --- a/src/tblib/__init__.py +++ b/src/tblib/__init__.py @@ -59,9 +59,6 @@ def __init__(self, code): self.co_flags = 64 self.co_firstlineno = 0 - def __reduce__(self): - return Code, (_AttrDict(self.__dict__),) - # noinspection SpellCheckingInspection def __tproxy__(self, operation, *args, **kwargs): """