[Zope-Checkins] CVS: ZODB3/zLOG - MinimalLogger.py:1.17.2.2

Jeremy Hylton jeremy@zope.com
Thu, 12 Jun 2003 17:23:46 -0400


Update of /cvs-repository/ZODB3/zLOG
In directory cvs.zope.org:/tmp/cvs-serv789/zLOG

Modified Files:
      Tag: ZODB3-3_1-branch
	MinimalLogger.py 
Log Message:
Remove use of textwrap module.  (Only affects Python 2.3 users.)


=== ZODB3/zLOG/MinimalLogger.py 1.17.2.1 => 1.17.2.2 ===
--- ZODB3/zLOG/MinimalLogger.py:1.17.2.1	Thu Oct 31 12:39:20 2002
+++ ZODB3/zLOG/MinimalLogger.py	Thu Jun 12 17:23:46 2003
@@ -15,11 +15,6 @@
 
 import os, sys, time
 
-try:
-    import textwrap
-except ImportError:
-    textwrap = None
-
 from FormatException import format_exception
 
 def severity_string(severity, mapping={
@@ -83,13 +78,7 @@
         buf = ["------"]
         line = ("%s %s %s %s" %
                 (log_time(), severity_string(severity), subsystem, summary))
-        if not textwrap or len(line) < 80:
-            buf.append(line)
-        else:
-            buf.extend(textwrap.wrap(line,
-                                     width=79,
-                                     subsequent_indent=" "*20,
-                                     break_long_words=0))
+        buf.append(line)
 
         if detail:
             buf.append(str(detail))