[Zodb-checkins] CVS: ZODB3/zLOG - MinimalLogger.py:1.17.2.2

Jeremy Hylton jeremy at zope.com
Thu Jun 12 18:23:47 EDT 2003


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))




More information about the Zodb-checkins mailing list