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

This commit is contained in:
Ondřej Surý
2017-01-09 18:29:02 -08:00
committed by Peter Eckersley
parent b0e4054b53
commit 06e07ca49b
+1 -1
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)