Skip to content

Commit 74a71ee

Browse files
committed
Change f-string to old format to support older python versions
1 parent d9d1a63 commit 74a71ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def loads(data, conf=True):
518518
if ";" not in data[index:] and index+1 != len(data):
519519
# If there is still something to parse, expect ';' otherwise
520520
# the Key regexp can get stuck due to regexp catastrophic backtracking
521-
raise ParseError(f"Config syntax, missing ';' at index: {index}")
521+
raise ParseError("Config syntax, missing ';' at index: {}".format(index))
522522

523523
double = r'\s*"[^"]*"'
524524
single = r'\s*\'[^\']*\''

0 commit comments

Comments
 (0)