[svn r57790] Reintroduce the --tb option. Add test.

--HG--
branch : trunk
This commit is contained in:
arigo
2008-09-03 10:15:44 +02:00
parent d83db97806
commit b52c58159f
4 changed files with 38 additions and 5 deletions

View File

@@ -243,9 +243,10 @@ class ReprTraceback(Repr):
def toterminal(self, tw):
sepok = False
for entry in self.reprentries:
if sepok and self.style == "long":
tw.sep(self.entrysep)
tw.line("")
if self.style == "long":
if sepok:
tw.sep(self.entrysep)
tw.line("")
sepok = True
entry.toterminal(tw)
if self.extraline: