diff options
Diffstat (limited to 'Lib/copy.py')
-rw-r--r-- | Lib/copy.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/copy.py b/Lib/copy.py index e4679de..100ea13 100644 --- a/Lib/copy.py +++ b/Lib/copy.py @@ -52,8 +52,9 @@ __getstate__() and __setstate__(). See the documentation for module import types -error = 'copy.error' -Error = error # backward compatibility +class Error(Exception): + pass +error = Error # backward compatibility def copy(x): """Shallow copy operation on arbitrary Python objects. |