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

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Fri, 21 Feb 2003 14:00:46 -0800


Update of /cvsroot/python/python/dist/src/Lib/logging
In directory sc8-pr-cvs1:/tmp/cvs-serv4010

Modified Files:
      Tag: r23a2-branch
	__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.5.2.1
diff -C2 -d -r1.5 -r1.5.2.1
*** __init__.py	18 Feb 2003 14:20:06 -0000	1.5
--- __init__.py	21 Feb 2003 22:00:39 -0000	1.5.2.1
***************
*** 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):