A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://svn.python.org/projects/python/branches/tk_and_idle_maintenance/Lib/idlelib/utils.py below:

import sys def tb_print_list(extracted_list, filename, normal=sys.stdout, highlight=sys.stderr): """An extended version of traceback.print_list which exclude "in " when printing traceback and highlight the entries that occur on the given filename.""" for fname, lineno, name, line in extracted_list: f = highlight if fname == filename else normal if name == ' ': f.write(' File "%s", line %d\n' % (fname, lineno)) else: f.write(' File "%s", line %d, in %s\n' % (fname, lineno, name)) if line: f.write(' %s\n' % line.strip())

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4