summaryrefslogtreecommitdiffstats
path: root/ptpython/validator.py
diff options
context:
space:
mode:
Diffstat (limited to 'ptpython/validator.py')
-rw-r--r--ptpython/validator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ptpython/validator.py b/ptpython/validator.py
index 91b9c28..cf2ee54 100644
--- a/ptpython/validator.py
+++ b/ptpython/validator.py
@@ -59,4 +59,4 @@ class PythonValidator(Validator):
except ValueError as e:
# In Python 2, compiling "\x9" (an invalid escape sequence) raises
# ValueError instead of SyntaxError.
- raise ValidationError(0, "Syntax Error: %s" % e)
+ raise ValidationError(0, f"Syntax Error: {e}")