Commit d2fed600 authored by Tom Niget's avatar Tom Niget

Hide debug line

parent 58cfc1b2
...@@ -63,8 +63,8 @@ def exception_hook(exc_type, exc_value, tb): ...@@ -63,8 +63,8 @@ def exception_hook(exc_type, exc_value, tb):
last_node.lineno = 1 last_node.lineno = 1
print(ast.unparse(last_node)) print(ast.unparse(last_node))
return return
print(f"From {last_node.lineno}:{last_node.col_offset} to {last_node.end_lineno}:{last_node.end_col_offset}")
print(f"In file {cf.white(last_file)}:{last_node.lineno}") print(f"In file {cf.white(last_file)}:{last_node.lineno}")
#print(f"From {last_node.lineno}:{last_node.col_offset} to {last_node.end_lineno}:{last_node.end_col_offset}")
with open(last_file, "r", encoding="utf-8") as f: with open(last_file, "r", encoding="utf-8") as f:
code = f.read() code = f.read()
hg = (str(highlight(code, True)) hg = (str(highlight(code, True))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment