summaryrefslogtreecommitdiffstats
path: root/Lib/copy_reg.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-02-04 05:06:17 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-02-04 05:06:17 (GMT)
commit2d6296573478c83c29790d7164613c9194a69375 (patch)
treee37260afcf300219d3da05463e156055f32b4193 /Lib/copy_reg.py
parentd4b920c8bd2d41b49d30c89fe9732ff443fe71f8 (diff)
downloadcpython-2d6296573478c83c29790d7164613c9194a69375.zip
cpython-2d6296573478c83c29790d7164613c9194a69375.tar.gz
cpython-2d6296573478c83c29790d7164613c9194a69375.tar.bz2
cPickle can load pickles using proto 2 EXT[124] now, but can't yet
generate these opcodes.
Diffstat (limited to 'Lib/copy_reg.py')
-rw-r--r--Lib/copy_reg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/copy_reg.py b/Lib/copy_reg.py
index e35d95e..c9c34c3 100644
--- a/Lib/copy_reg.py
+++ b/Lib/copy_reg.py
@@ -87,7 +87,7 @@ _extension_cache = {} # code -> object
def add_extension(module, name, code):
"""Register an extension code."""
code = int(code)
- if not 1 <= code < 0x7fffffff:
+ if not 1 <= code <= 0x7fffffff:
raise ValueError, "code out of range"
key = (module, name)
if (_extension_registry.get(key) == code and