mirror of
https://github.com/certbot/certbot.git
synced 2026-07-26 07:39:52 +02:00
Revert "UnspacedList._spaced_position: support the slice at the end fo the list"
This reverts commit 85d9ab4d5c.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user