Revert "UnspacedList._spaced_position: support the slice at the end fo the list"

This reverts commit 85d9ab4d5c.
This commit is contained in:
Brad Warren
2016-07-26 17:01:24 -07:00
parent 599ba1194f
commit f98470d4a0
@@ -279,9 +279,6 @@ class UnspacedList(list):
# Normalize indexes like list[-1] etc, and save the result
if idx < 0:
idx = len(self) + idx
if idx == len(self):
# not an index, but the slice at the end of the list
return len(self.spaced)
if not 0 <= idx < len(self):
raise IndexError("list index out of range")
idx0 = idx