mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
pep8 letsencrypt-nginx
This commit is contained in:
parent
95c8edc66c
commit
d8c55f3da3
3 changed files with 6 additions and 6 deletions
|
|
@ -7,6 +7,7 @@ from pyparsing import (
|
|||
from pyparsing import stringEnd
|
||||
from pyparsing import restOfLine
|
||||
|
||||
|
||||
class RawNginxParser(object):
|
||||
# pylint: disable=expression-not-assigned
|
||||
"""A class that parses nginx configuration with pyparsing."""
|
||||
|
|
@ -32,10 +33,10 @@ class RawNginxParser(object):
|
|||
block = Forward()
|
||||
|
||||
block << Group(
|
||||
(Group(key + location_statement) ^ Group(if_statement))
|
||||
+ left_bracket
|
||||
+ Group(ZeroOrMore(Group(comment | assignment) | block))
|
||||
+ right_bracket)
|
||||
(Group(key + location_statement) ^ Group(if_statement)) +
|
||||
left_bracket +
|
||||
Group(ZeroOrMore(Group(comment | assignment) | block)) +
|
||||
right_bracket)
|
||||
|
||||
script = OneOrMore(Group(comment | assignment) ^ block) + stringEnd
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ class DvsniPerformTest(util.NginxTest):
|
|||
domain="www.example.org", account_key=account_key),
|
||||
]
|
||||
|
||||
|
||||
def setUp(self):
|
||||
super(DvsniPerformTest, self).setUp()
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ setup(
|
|||
entry_points={
|
||||
'letsencrypt.plugins': [
|
||||
'nginx = letsencrypt_nginx.configurator:NginxConfigurator',
|
||||
],
|
||||
],
|
||||
},
|
||||
include_package_data=True,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue