diff options
| author | Collin Winter <collinw@gmail.com> | 2007-08-30 01:19:48 +0000 |
|---|---|---|
| committer | Collin Winter <collinw@gmail.com> | 2007-08-30 01:19:48 +0000 |
| commit | ce36ad8a467d914eb5c91f33835b9eaea18ee93b (patch) | |
| tree | 05bf654f3359e20b455dc300bd860bba5d291c8d /Lib/copy_reg.py | |
| parent | 8b3febef2f96c35e9aad9db2ef499db040fdefae (diff) | |
| download | cpython-git-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.tar.gz | |
Raise statement normalization in Lib/.
Diffstat (limited to 'Lib/copy_reg.py')
| -rw-r--r-- | Lib/copy_reg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/copy_reg.py b/Lib/copy_reg.py index 59b6b97143..d693209fe0 100644 --- a/Lib/copy_reg.py +++ b/Lib/copy_reg.py @@ -62,7 +62,7 @@ def _reduce_ex(self, proto): state = None else: if base is self.__class__: - raise TypeError, "can't pickle %s objects" % base.__name__ + raise TypeError("can't pickle %s objects" % base.__name__) state = base(self) args = (self.__class__, base, state) try: @@ -153,7 +153,7 @@ def add_extension(module, name, code): """Register an extension code.""" code = int(code) if not 1 <= code <= 0x7fffffff: - raise ValueError, "code out of range" + raise ValueError("code out of range") key = (module, name) if (_extension_registry.get(key) == code and _inverted_registry.get(code) == key): |
