Author: Armin Rigo <[email protected]>
Branch:
Changeset: r78078:0938f6ed592f
Date: 2015-06-13 10:16 +0100
http://bitbucket.org/pypy/pypy/changeset/0938f6ed592f/
Log: Forgot this
diff --git a/pypy/objspace/std/sliceobject.py b/pypy/objspace/std/sliceobject.py
--- a/pypy/objspace/std/sliceobject.py
+++ b/pypy/objspace/std/sliceobject.py
@@ -219,6 +219,7 @@
if space.is_none(w_end):
end = size
+ assert end >= 0
else:
end = adapt_lower_bound(space, size, w_end)
return start, end
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit