[Zodb-checkins] CVS: ZODB3/zLOG - MinimalLogger.py:1.17
Guido van Rossum
guido@python.org
Fri, 27 Sep 2002 12:14:46 -0400
Update of /cvs-repository/ZODB3/zLOG
In directory cvs.zope.org:/tmp/cvs-serv14003
Modified Files:
MinimalLogger.py
Log Message:
When using textwrap, don't break long words. Occasionally a line will
be too long, but breaking these at an arbitrary character looks wrong
(and can occasionally prevent you from finding a search string).
=== ZODB3/zLOG/MinimalLogger.py 1.16 => 1.17 ===
--- ZODB3/zLOG/MinimalLogger.py:1.16 Mon Sep 16 10:08:51 2002
+++ ZODB3/zLOG/MinimalLogger.py Fri Sep 27 12:14:40 2002
@@ -86,7 +86,10 @@
if not textwrap or len(line) < 80:
buf.append(line)
else:
- buf.extend(textwrap.wrap(line, width=79, subsequent_indent=" "*20))
+ buf.extend(textwrap.wrap(line,
+ width=79,
+ subsequent_indent=" "*20,
+ break_long_words=0))
if detail:
buf.append(str(detail))