From 27e2a49d1eab9ed70aa7a387b0f4436f5fab0734 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 4 Jul 2025 08:58:42 +0200 Subject: [PATCH] algo.ShuntingYard: Use slog() for debugging Signed-off-by: Jan Lindemann --- tools/python/jwutils/algo/ShuntingYard.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/python/jwutils/algo/ShuntingYard.py b/tools/python/jwutils/algo/ShuntingYard.py index 17b1f8f..c641b09 100644 --- a/tools/python/jwutils/algo/ShuntingYard.py +++ b/tools/python/jwutils/algo/ShuntingYard.py @@ -1,6 +1,8 @@ +import re, shlex + from collections import namedtuple -import re -import shlex + +from ..log import * # --- python 2 / 3 compatibility stuff try: @@ -55,7 +57,7 @@ class ShuntingYard(object): # export for count, thing in enumerate(args): msg += ' ' + str(thing) if len(msg): - print(msg[1:]) + slog(DEBUG, msg[1:], caller=get_caller_pos()) def operator(self, key: str) -> Operator: return self.__ops[key]