Kaydet (Commit) 4c641d0c authored tarafından Jack Jansen's avatar Jack Jansen

getpid doesn't exist on MacOS9.

üst be53242f
......@@ -213,7 +213,10 @@ class LogRecord:
self.thread = thread.get_ident()
else:
self.thread = None
self.process = os.getpid()
if hasattr(os, 'getpid'):
self.process = os.getpid()
else:
self.process = None
def __str__(self):
return '<LogRecord: %s, %s, %s, %s, "%s">'%(self.name, self.levelno,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment