[Python-checkins] python/dist/src/Lib/logging __init__.py,1.5,1.6

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2003年2月21日 14:29:48 -0800


Update of /cvsroot/python/python/dist/src/Lib/logging
In directory sc8-pr-cvs1:/tmp/cvs-serv15930/Lib/logging
Modified Files:
	__init__.py 
Log Message:
getpid doesn't exist on MacOS9.
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/__init__.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** __init__.py	18 Feb 2003 14:20:06 -0000	1.5
--- __init__.py	21 Feb 2003 22:29:45 -0000	1.6
***************
*** 214,218 ****
 else:
 self.thread = None
! self.process = os.getpid()
 
 def __str__(self):
--- 214,221 ----
 else:
 self.thread = None
! if hasattr(os, 'getpid'):
! self.process = os.getpid()
! else:
! self.process = None
 
 def __str__(self):

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