mirror of
https://github.com/certbot/certbot.git
synced 2026-08-04 16:13:23 +02:00
pep8 letsencrypt-nginx
This commit is contained in:
@@ -7,6 +7,7 @@ from pyparsing import (
|
|||||||
from pyparsing import stringEnd
|
from pyparsing import stringEnd
|
||||||
from pyparsing import restOfLine
|
from pyparsing import restOfLine
|
||||||
|
|
||||||
|
|
||||||
class RawNginxParser(object):
|
class RawNginxParser(object):
|
||||||
# pylint: disable=expression-not-assigned
|
# pylint: disable=expression-not-assigned
|
||||||
"""A class that parses nginx configuration with pyparsing."""
|
"""A class that parses nginx configuration with pyparsing."""
|
||||||
@@ -32,10 +33,10 @@ class RawNginxParser(object):
|
|||||||
block = Forward()
|
block = Forward()
|
||||||
|
|
||||||
block << Group(
|
block << Group(
|
||||||
(Group(key + location_statement) ^ Group(if_statement))
|
(Group(key + location_statement) ^ Group(if_statement)) +
|
||||||
+ left_bracket
|
left_bracket +
|
||||||
+ Group(ZeroOrMore(Group(comment | assignment) | block))
|
Group(ZeroOrMore(Group(comment | assignment) | block)) +
|
||||||
+ right_bracket)
|
right_bracket)
|
||||||
|
|
||||||
script = OneOrMore(Group(comment | assignment) ^ block) + stringEnd
|
script = OneOrMore(Group(comment | assignment) ^ block) + stringEnd
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ class DvsniPerformTest(util.NginxTest):
|
|||||||
domain="www.example.org", account_key=account_key),
|
domain="www.example.org", account_key=account_key),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(DvsniPerformTest, self).setUp()
|
super(DvsniPerformTest, self).setUp()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user