[Python-checkins] python/dist/src/Lib/logging __init__.py, 1.15, 1.16 handlers.py, 1.13, 1.14

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Wed Jul 7 22:54:50 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/logging
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28101/Lib/logging
Modified Files:
	__init__.py handlers.py 
Log Message:
Whitespace normalization.
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/__init__.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** __init__.py	3 Jul 2004 11:47:26 -0000	1.15
--- __init__.py	7 Jul 2004 20:54:47 -0000	1.16
***************
*** 1163,1167 ****
 level = kwargs.get("level")
 if level:
! root.setLevel(level)
 
 #---------------------------------------------------------------------------
--- 1163,1167 ----
 level = kwargs.get("level")
 if level:
! root.setLevel(level)
 
 #---------------------------------------------------------------------------
Index: handlers.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/handlers.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** handlers.py	3 Jul 2004 11:48:34 -0000	1.13
--- handlers.py	7 Jul 2004 20:54:48 -0000	1.14
***************
*** 316,322 ****
 # we've waited long enough.
 if self.retryTime is None:
! attempt = 1
 else:
! attempt = (now >= self.retryTime)
 if attempt:
 try:
--- 316,322 ----
 # we've waited long enough.
 if self.retryTime is None:
! attempt = 1
 else:
! attempt = (now >= self.retryTime)
 if attempt:
 try:
***************
*** 367,375 ****
 ei = record.exc_info
 if ei:
! dummy = self.format(record) # just to get traceback text into record.exc_text
! record.exc_info = None # to avoid Unpickleable error
 s = cPickle.dumps(record.__dict__, 1)
 if ei:
! record.exc_info = ei # for next handler
 slen = struct.pack(">L", len(s))
 return slen + s
--- 367,375 ----
 ei = record.exc_info
 if ei:
! dummy = self.format(record) # just to get traceback text into record.exc_text
! record.exc_info = None # to avoid Unpickleable error
 s = cPickle.dumps(record.__dict__, 1)
 if ei:
! record.exc_info = ei # for next handler
 slen = struct.pack(">L", len(s))
 return slen + s


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /