Commit 66478f12 authored by Guido van Rossum's avatar Guido van Rossum

Change wrap width to 79. Suppress blank line after tracebacks.

parent 778d5646
......@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
__version__='$Revision: 1.15 $'[11:-2]
__version__='$Revision: 1.16 $'[11:-2]
import os, sys, time
......@@ -86,7 +86,7 @@ class stupid_log_write:
if not textwrap or len(line) < 80:
buf.append(line)
else:
buf.extend(textwrap.wrap(line, subsequent_indent=" "*20))
buf.extend(textwrap.wrap(line, width=79, subsequent_indent=" "*20))
if detail:
buf.append(str(detail))
......@@ -99,6 +99,7 @@ class stupid_log_write:
except '':
buf.append("%s: %s" % error[:2])
if buf[-1] and buf[-1][-1] != "\n":
buf.append("") # Cause a final \n to be appended
_log_dest.write("\n".join(buf))
......
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