def _process_var_line(self, line):
"""
Process a line of variables in the traceback.
"""
if self._show_vars is False or (self._isolate and not self._file_in_dir()):
# Don't print.
return False
else:
line = highlight(line, PythonLexer(), TerminalFormatter(style="monokai"))
self._print(line.rstrip("\r\n"), max_length=self._max_length)
return True
评论列表
文章目录