algo.ShuntingYard: Use slog() for debugging

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-07-04 08:58:42 +02:00
commit 27e2a49d1e

View file

@ -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]