diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-04-26 18:34:04 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-04-26 18:34:04 (GMT) |
commit | 985ef87ea0c5e1bbcbfd4fb41ae99c963ac58840 (patch) | |
tree | 0887cdd7f44cf0b45e28363078c65e08d567b7da /Lib/logging/config.py | |
parent | 26fe4b70cf38d9de4001e4b1cf9c2206ad3e1b4b (diff) | |
download | cpython-985ef87ea0c5e1bbcbfd4fb41ae99c963ac58840.zip cpython-985ef87ea0c5e1bbcbfd4fb41ae99c963ac58840.tar.gz cpython-985ef87ea0c5e1bbcbfd4fb41ae99c963ac58840.tar.bz2 |
More test_logging coverage improvements.
Diffstat (limited to 'Lib/logging/config.py')
-rw-r--r-- | Lib/logging/config.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py index c7359ca..7daa2df 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -30,7 +30,7 @@ import types, io try: import _thread as thread import threading -except ImportError: +except ImportError: #pragma: no cover thread = None from socketserver import ThreadingTCPServer, StreamRequestHandler @@ -786,7 +786,7 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT): and which you can join() when appropriate. To stop the server, call stopListening(). """ - if not thread: + if not thread: #pragma: no cover raise NotImplementedError("listen() needs threading to work") class ConfigStreamHandler(StreamRequestHandler): @@ -825,7 +825,7 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT): file = io.StringIO(chunk) try: fileConfig(file) - except (KeyboardInterrupt, SystemExit): + except (KeyboardInterrupt, SystemExit): #pragma: no cover raise except: traceback.print_exc() |