Show More
@@ -550,7 +550,7 b' class ListTB(TBTools):' | |||||
550 | stype = Colors.excName + etype.__name__ + Colors.Normal |
|
550 | stype = Colors.excName + etype.__name__ + Colors.Normal | |
551 | if value is None: |
|
551 | if value is None: | |
552 | # Not sure if this can still happen in Python 2.6 and above |
|
552 | # Not sure if this can still happen in Python 2.6 and above | |
553 |
list.append( |
|
553 | list.append( py3compat.cast_unicode(stype) + '\n') | |
554 | else: |
|
554 | else: | |
555 | if etype is SyntaxError: |
|
555 | if etype is SyntaxError: | |
556 | have_filedata = True |
|
556 | have_filedata = True | |
@@ -565,7 +565,7 b' class ListTB(TBTools):' | |||||
565 | while i < len(value.text) and value.text[i].isspace(): |
|
565 | while i < len(value.text) and value.text[i].isspace(): | |
566 | i += 1 |
|
566 | i += 1 | |
567 | list.append('%s %s%s\n' % (Colors.line, |
|
567 | list.append('%s %s%s\n' % (Colors.line, | |
568 | value.text.strip(), |
|
568 | py3compat.cast_unicode(value.text.strip()), | |
569 | Colors.Normal)) |
|
569 | Colors.Normal)) | |
570 | if value.offset is not None: |
|
570 | if value.offset is not None: | |
571 | s = ' ' |
|
571 | s = ' ' |
General Comments 0
You need to be logged in to leave comments.
Login now