52 Commits (580227a8a0d37ebff27815ca2eaadadc592dcb31)

Author SHA1 Message Date
Victor Stinner 7c8eaad1bf Merged revisions 80777 via svnmerge from 16 years ago
Victor Stinner 926fd4ee32 Issue #8313: traceback.format_exception_only() encodes unicode message to 16 years ago
Georg Brandl f004d9dc84 Merged revisions 73206,73232,73299,73683,74020,74185,74544,74643,74647,74817,74838-74839,74865,74946,75402,75459,75604,75696 via svnmerge from 17 years ago
Georg Brandl eb56aa169a #3584: ignore trailing newlines when placing the caret for a SyntaxError location. 17 years ago
Hirokazu Yamamoto 32b18cc2cf Rolled back revisions 71237 via svnmerge from 17 years ago
Georg Brandl e9b912164b Merged revisions 71058,71149-71150,71212,71214-71216,71222,71225,71234,71237-71238,71240-71241,71243,71249,71251 via svnmerge from 17 years ago
Georg Brandl dc4a77159b #1326077: fix traceback formatting of SyntaxErrors. This fixes two differences with formatting coming from Python: a) the reproduction of location details in the error message if no line text is given, b) the prefixing of the last line by one space. 17 years ago
Benjamin Peterson 797eaf305a complain when there's no last exception 17 years ago
Benjamin Peterson 3e6c335ae0 revert r70552; wrong fix 17 years ago
Benjamin Peterson 85e1478ca4 fix very old names for exception terms #5543 17 years ago
Brett Cannon 5400b6b2e2 Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module. 18 years ago
Georg Brandl edd81b2402 Fix a bug in traceback.format_exception_only() that led to an error 20 years ago
Georg Brandl c7986cee76 Fix a bug in traceback.format_exception_only() that led to an error 20 years ago
Georg Brandl 16183631ed Better fix for bug #1531405, not executing str(value) twice. 20 years ago
Neal Norwitz ff4b63b80f Bug #1531405, format_exception no longer raises an exception if 20 years ago
Tim Peters 0bbfd83250 Whitespace normalization. 20 years ago
Georg Brandl afb44f47d9 Repair accidental NameError. 20 years ago
Georg Brandl c13c34c39d Patch #1515343: Fix printing of deprecated string exceptions with a 20 years ago
Guido van Rossum 8f6cbe1502 Fix the formatting of KeyboardInterrupt -- a bad issubclass() call. 20 years ago
Anthony Baxter 57fdcbc60f reverting r45321: Patch #860326: traceback.format_exception_only() now 20 years ago
Georg Brandl 24c274f5dc Patch #860326: traceback.format_exception_only() now prepends the 20 years ago
Phillip J. Eby 4703211080 Updated the warnings, linecache, inspect, traceback, site, and doctest modules 20 years ago
Georg Brandl 51dbc4c879 traceback now shows error position for all SyntaxError subclasses, 20 years ago
Phillip J. Eby 4a26633e0e Revert r42719, because the isinstance() check wasn't redundant; formatting a 20 years ago
Thomas Wouters 7c187bcc82 Remove redundant isinstance() check. 21 years ago
Brett Cannon bf36409e2a PEP 352 implementation. Creates a new base class, BaseException, which has an 21 years ago
Hye-Shik Chang 182ac85147 SF #737473: Show up-to-date source code in tracebacks always. 22 years ago
Tim Peters 58eb11cf62 Whitespace normalization. 23 years ago
Neil Schemenauer f607fc5395 Add traceback.format_exc(). 23 years ago
Michael W. Hudson dd32a91cc0 This is my patch 24 years ago
Raymond Hettinger 10ff706e27 Replaced boolean tests with is None. 24 years ago
Tim Peters 0bb580d297 SF bug 431772: traceback.print_exc() causes traceback 25 years ago
Tim Peters a19a168ccc Whitespace normalization. 26 years ago
Jeremy Hylton ed9d0ba482 Do not print caret when offset is None. 26 years ago
Jeremy Hylton 69e9e8bd51 Reformat and edit docstrings to follow modern conventions. Single 26 years ago
Skip Montanaro 40fc16059f final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be 26 years ago
Eric S. Raymond 6e025bcde8 String method cleanup. 26 years ago
Eric S. Raymond ec3bbdef94 String method conversion. 26 years ago
Tim Peters b90f89a496 Whitespace normalization. 26 years ago
Guido van Rossum 3ad167ae34 mwh: [ Patch #103228 ] traceback.py nit. 26 years ago
Guido van Rossum 2823f03a56 Patch by Toby Dickenson: don't die when an error occurs during string 26 years ago
Thomas Wouters 7e47402264 Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either 26 years ago
Guido van Rossum 3bb1edb328 Match the error messages to say "(most recent call last)" like the 27 years ago
Guido van Rossum e7b146fb3b The third and final doc-string sweep by Ka-Ping Yee. 27 years ago
Guido van Rossum 3f0666c4a2 Add obvious needed else clause to format_exception(). 29 years ago
Guido van Rossum 6e73af723c New version of tb_lineno(), this time *not* using try-except, to avoid 29 years ago
Guido van Rossum 7266496b00 Tweak the tb_lineno() function to be compatible with JPython, which 29 years ago
Guido van Rossum 4752966193 Use Marc Lemburg's tb_lineno() to calculate the correct line number. 29 years ago
Guido van Rossum 2deb73a961 Use sys.exc_info() instead of sys.exc_{type,value,traceback}. 29 years ago
Guido van Rossum 2715bb20db Changes to always call list.append with a single argument. 30 years ago