Skip to content

Commit ca879cc

Browse files
committed
Add support for legacy Python versions
1 parent 93bcc4d commit ca879cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

relint.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ def main():
8585
lines = match.string.splitlines()
8686

8787
line_no = match.string[:match.start()].count('\n')
88-
print(f"{filename}:{line_no + 1} {test.name}")
88+
output_format = "{filename}:{line_no} {test.name}"
89+
print(output_format.format(
90+
filename=filename, line_no=line_no + 1, test=test,
91+
))
8992
if test.hint:
9093
print("Hint:", test.hint)
9194
print("> ", lines[line_no])

0 commit comments

Comments
 (0)