changeset: 74613:e506848d6381 branch: 3.2 parent: 74611:c79d0a7ac79d user: Vinay Sajip date: Wed Jan 25 17:41:13 2012 +0000 files: Lib/logging/__init__.py description: Closes #13859: Replaced reference to StandardError with reference to Exception. Thanks to Matt Joiner for spotting this and submitting a patch. diff -r c79d0a7ac79d -r e506848d6381 Lib/logging/__init__.py --- a/Lib/logging/__init__.py Wed Jan 25 18:01:45 2012 +0100 +++ b/Lib/logging/__init__.py Wed Jan 25 17:41:13 2012 +0000 @@ -294,7 +294,7 @@ # for an example try: self.processName = mp.current_process().name - except StandardError: + except Exception: pass if logProcesses and hasattr(os, 'getpid'): self.process = os.getpid()

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