From c14d3316bc1e3afdb30900d5e3b0a04ea702f65c Mon Sep 17 00:00:00 2001 From: Mario Kruselj Date: Tue, 30 Sep 2025 13:02:04 +0200 Subject: [PATCH] Minor improvement to formatting of ParseException (get_locations_string) --- compiler/ksp_compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ksp_compiler.py b/compiler/ksp_compiler.py index 6fc4fa6..ac11898 100644 --- a/compiler/ksp_compiler.py +++ b/compiler/ksp_compiler.py @@ -248,7 +248,7 @@ def get_filename(self): filename = property(get_filename) def get_locations_string(self): - return '\n'.join(('%s%s: %d' % (' ' * (i * 4), filename or '
', lineno)) \ + return '\n'.join(('%s%s, line %d' % (' ' * (i * 4), filename or '
', lineno)) \ for (i, (filename, lineno)) in enumerate(reversed(self.locations))) def copy(self, new_command = None, add_location = None):