[Zodb-checkins] CVS: Zope3/lib/python/zLOG - MinimalLogger.py:1.3.20.1
Jeremy Hylton
jeremy@zope.com
Tue, 5 Mar 2002 00:15:55 -0500
Update of /cvs-repository/Zope3/lib/python/zLOG
In directory cvs.zope.org:/tmp/cvs-serv6699
Modified Files:
Tag: Zope-3x-branch
MinimalLogger.py
Log Message:
Reformat some densely packed code.
Remove unused globals _stupid_severity and _no_stupid_log.
=== Zope3/lib/python/zLOG/MinimalLogger.py 1.3 => 1.3.20.1 ===
"""Convert a severity code to a string
"""
- s=int(severity)
- if mapping.has_key(s): s=mapping[s]
- else: s=''
+ s = int(severity)
+ if mapping.has_key(s):
+ s = mapping[s]
+ else:
+ s = ''
return "%s(%s)" % (s, severity)
def log_time():
@@ -115,8 +117,6 @@
_log_dest = dest
_log_dest = None
-_stupid_severity = None
-_no_stupid_log = []
class stupid_log_write: