diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2008-12-04 20:32:18 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2008-12-04 20:32:18 (GMT) |
commit | 6831d6bc7f4ee97ee854ddaa50f47ec4fb781cd2 (patch) | |
tree | 4d236b05638e3375df311c4a93339b413a248976 /Misc | |
parent | 97f49f4be7ab6d4b570029be4b4439cc29be2f74 (diff) | |
download | cpython-6831d6bc7f4ee97ee854ddaa50f47ec4fb781cd2.zip cpython-6831d6bc7f4ee97ee854ddaa50f47ec4fb781cd2.tar.gz cpython-6831d6bc7f4ee97ee854ddaa50f47ec4fb781cd2.tar.bz2 |
Took Nick Coghlan's advice about importing warnings globally in logging, to avoid the possibility of race conditions: "This could deadlock if a thread spawned as a side effect of importing a module happens to trigger a warning. warnings is pulled into sys.modules as part of the interpreter startup - having a global 'import warnings' shouldn't have any real effect on logging's import time."
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -67,11 +67,11 @@ Library support unusual filenames (such as those containing semi-colons) in Content-Disposition headers. -- Issue #4384: Added integration with warnings module using captureWarnings(). - This change includes a NullHandler which does nothing; it will be of use to - library developers who want to avoid the "No handlers could be found for - logger XXX" message which can appear if the library user doesn't configure - logging. +- Issue #4384: Added logging integration with warnings module using + captureWarnings(). This change includes a NullHandler which does nothing; + it will be of use to library developers who want to avoid the "No handlers + could be found for logger XXX" message which can appear if the library user + doesn't configure logging. - Issue #3741: DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception. |