We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9d1a63 commit 74a71eeCopy full SHA for 74a71ee
nginx.py
@@ -518,7 +518,7 @@ def loads(data, conf=True):
518
if ";" not in data[index:] and index+1 != len(data):
519
# If there is still something to parse, expect ';' otherwise
520
# the Key regexp can get stuck due to regexp catastrophic backtracking
521
- raise ParseError(f"Config syntax, missing ';' at index: {index}")
+ raise ParseError("Config syntax, missing ';' at index: {}".format(index))
522
523
double = r'\s*"[^"]*"'
524
single = r'\s*\'[^\']*\''
0 commit comments