summaryrefslogtreecommitdiffstats
path: root/Lib/concurrent
diff options
context:
space:
mode:
authorBrian Quinlan <brian@sweetapp.com>2010-10-06 13:05:45 (GMT)
committerBrian Quinlan <brian@sweetapp.com>2010-10-06 13:05:45 (GMT)
commit1e2ae4f054c20f54238997987416dcff0f3b0f3a (patch)
tree3212f91cab82c64da9485eed6bcd4e9b143da0c2 /Lib/concurrent
parent5ad8ed5f26d5d511c3c058c16229e35cb43ba29f (diff)
downloadcpython-1e2ae4f054c20f54238997987416dcff0f3b0f3a.zip
cpython-1e2ae4f054c20f54238997987416dcff0f3b0f3a.tar.gz
cpython-1e2ae4f054c20f54238997987416dcff0f3b0f3a.tar.bz2
Fixes 9903: test_concurrent_futures writes on stderr
Diffstat (limited to 'Lib/concurrent')
-rw-r--r--Lib/concurrent/futures/_base.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/concurrent/futures/_base.py b/Lib/concurrent/futures/_base.py
index ba4cbc7..8136d89 100644
--- a/Lib/concurrent/futures/_base.py
+++ b/Lib/concurrent/futures/_base.py
@@ -40,9 +40,8 @@ _STATE_TO_DESCRIPTION_MAP = {
# Logger for internal use by the futures package.
LOGGER = logging.getLogger("concurrent.futures")
-_handler = logging.StreamHandler()
-LOGGER.addHandler(_handler)
-del _handler
+STDERR_HANDLER = logging.StreamHandler()
+LOGGER.addHandler(STDERR_HANDLER)
class Error(Exception):
"""Base class for all future-related exceptions."""