mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
Lint
This commit is contained in:
@@ -198,7 +198,7 @@ class UnspacedList(list):
|
||||
if not isinstance(inbound, list): # str or None
|
||||
return (inbound, inbound)
|
||||
else:
|
||||
if not hasattr(x, "spaced"):
|
||||
if not hasattr(inbound, "spaced"):
|
||||
inbound = UnspacedList(inbound)
|
||||
return (inbound, inbound.spaced)
|
||||
|
||||
@@ -224,9 +224,9 @@ class UnspacedList(list):
|
||||
return l
|
||||
|
||||
def __setitem__(self, i, value):
|
||||
item, spaced_item = self._coerce(x)
|
||||
self.spaced.__setitem__(i + self._spaces_before(i), value)
|
||||
list.__setitem__(self, i, value)
|
||||
item, spaced_item = self._coerce(value)
|
||||
self.spaced.__setitem__(i + self._spaces_before(i), spaced_item)
|
||||
list.__setitem__(self, i, item)
|
||||
|
||||
def __delitem__(self, i):
|
||||
self.spaced.__delitem__(i + self._spaces_before(i))
|
||||
|
||||
@@ -17,7 +17,6 @@ from certbot.plugins import common
|
||||
|
||||
from certbot_nginx import constants
|
||||
from certbot_nginx import configurator
|
||||
from certbot_nginx import nginxparser
|
||||
|
||||
|
||||
class NginxTest(unittest.TestCase): # pylint: disable=too-few-public-methods
|
||||
|
||||
Reference in New Issue
Block a user