pyparsing.restOfLine is not a function, don't call it (#3989)

This commit is contained in:
Ondřej Surý 2017-01-10 03:29:02 +01:00 committed by Peter Eckersley
parent b0e4054b53
commit 06e07ca49b

View file

@ -43,7 +43,7 @@ class RawNginxParser(object):
modifier = Literal("=") | Literal("~*") | Literal("~") | Literal("^~")
# rules
comment = space + Literal('#') + restOfLine()
comment = space + Literal('#') + restOfLine
assignment = space + key + Optional(space + value, default=None) + semicolon
location_statement = space + Optional(modifier) + Optional(space + location + space)