mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Try simplifying handling of spacey sublists
- this was causing test failures but they may all have been fixed by other changes...
This commit is contained in:
parent
db66050a7a
commit
a29c6e3102
1 changed files with 1 additions and 6 deletions
|
|
@ -172,12 +172,7 @@ class UnspacedList(list):
|
|||
for i, entry in reversed(list(enumerate(self))):
|
||||
if isinstance(entry, list):
|
||||
sublist = UnspacedList(entry)
|
||||
if sublist != [] or sublist.spaced == []:
|
||||
list.__setitem__(self, i, sublist)
|
||||
else:
|
||||
# if a sublist is exclusively spacey entries, it might
|
||||
# choke the high level parser, so make it disappear
|
||||
list.__delitem__(self, i)
|
||||
list.__setitem__(self, i, sublist)
|
||||
self.spaced[i] = sublist.spaced
|
||||
elif spacey(entry):
|
||||
# don't delete comments
|
||||
|
|
|
|||
Loading…
Reference in a new issue