diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-07-25 21:13:58 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-07-25 21:13:58 +0200 |
commit | 9498ab6527fa1a0a10b0f048f336353c297a6c8d (patch) | |
tree | b6426368245b52768da3761d3b400cce72581953 /Cython/Debugger/libpython.py | |
parent | 9c7d4b130a7f5cf1247fe3651a374f82b7b9d368 (diff) | |
download | cython-9498ab6527fa1a0a10b0f048f336353c297a6c8d.tar.gz |
replace xrange() by range() to make it work in Py2/Py3
Diffstat (limited to 'Cython/Debugger/libpython.py')
-rw-r--r-- | Cython/Debugger/libpython.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Debugger/libpython.py b/Cython/Debugger/libpython.py index ca4e74d56..4c15c1e17 100644 --- a/Cython/Debugger/libpython.py +++ b/Cython/Debugger/libpython.py @@ -118,7 +118,7 @@ def safety_limit(val): def safe_range(val): # As per range, but don't trust the value too much: cap it to a safety # threshold in case the data was corrupted - return xrange(safety_limit(val)) + return range(safety_limit(val)) def write_unicode(file, text): |