diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-17 05:06:49 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-17 05:06:49 (GMT) |
commit | 227b1204681a8bd7077bf1f8e9098b7e2e9f4c13 (patch) | |
tree | 25e36d9096e5ddcde4a12065b5d38d4dd9beed56 /Lib/copy.py | |
parent | 9b8d801c37fa29420848ebc1b50c601893b36287 (diff) | |
download | cpython-227b1204681a8bd7077bf1f8e9098b7e2e9f4c13.zip cpython-227b1204681a8bd7077bf1f8e9098b7e2e9f4c13.tar.gz cpython-227b1204681a8bd7077bf1f8e9098b7e2e9f4c13.tar.bz2 |
Convert some old-style string exceptions to class exceptions.
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. |