diff options
Diffstat (limited to 'Lib/copy.py')
-rw-r--r-- | Lib/copy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/copy.py b/Lib/copy.py index 7b82adb..a4a3ceb 100644 --- a/Lib/copy.py +++ b/Lib/copy.py @@ -140,7 +140,7 @@ def _copy_inst(x): return x.__copy__() if hasattr(x, '__getinitargs__'): args = x.__getinitargs__() - y = apply(x.__class__, args) + y = x.__class__(*args) else: y = _EmptyClass() y.__class__ = x.__class__ @@ -293,7 +293,7 @@ def _deepcopy_inst(x, memo): if hasattr(x, '__getinitargs__'): args = x.__getinitargs__() args = deepcopy(args, memo) - y = apply(x.__class__, args) + y = x.__class__(*args) else: y = _EmptyClass() y.__class__ = x.__class__ |