mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
algo.ShuntingYard: Use slog() for debugging
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
271ea32dcd
commit
27e2a49d1e
1 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
|
import re, shlex
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
import re
|
|
||||||
import shlex
|
from ..log import *
|
||||||
|
|
||||||
# --- python 2 / 3 compatibility stuff
|
# --- python 2 / 3 compatibility stuff
|
||||||
try:
|
try:
|
||||||
|
|
@ -55,7 +57,7 @@ class ShuntingYard(object): # export
|
||||||
for count, thing in enumerate(args):
|
for count, thing in enumerate(args):
|
||||||
msg += ' ' + str(thing)
|
msg += ' ' + str(thing)
|
||||||
if len(msg):
|
if len(msg):
|
||||||
print(msg[1:])
|
slog(DEBUG, msg[1:], caller=get_caller_pos())
|
||||||
|
|
||||||
def operator(self, key: str) -> Operator:
|
def operator(self, key: str) -> Operator:
|
||||||
return self.__ops[key]
|
return self.__ops[key]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue