Kaydet (Commit) ed9d0ba4 authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Do not print caret when offset is None.

üst 6783070e
...@@ -175,6 +175,7 @@ def format_exception_only(etype, value): ...@@ -175,6 +175,7 @@ def format_exception_only(etype, value):
while i < len(line) and line[i].isspace(): while i < len(line) and line[i].isspace():
i = i+1 i = i+1
list.append(' %s\n' % line.strip()) list.append(' %s\n' % line.strip())
if offset is not None:
s = ' ' s = ' '
for c in line[i:offset-1]: for c in line[i:offset-1]:
if c.isspace(): if c.isspace():
......
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