mirror of https://github.com/yandex/gixy
Fix raw parser after merge :(
parent
885485e7dc
commit
0317b39c95
|
@ -22,14 +22,11 @@ class RawParser(object):
|
|||
"""
|
||||
A class that parses nginx configuration with pyparsing
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
self._if_fixer = re.compile(r'(if\s.+)\)\)(\s*\{)?$', flags=re.MULTILINE)
|
||||
|
||||
def parse(self, data):
|
||||
"""
|
||||
Returns the parsed tree.
|
||||
"""
|
||||
|
||||
return self.script.parseString(data, parseAll=True)
|
||||
|
||||
@cached_property
|
||||
|
|
Loading…
Reference in New Issue