summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/logging/config.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py
index 92f2af0..a5c780f 100644
--- a/Lib/logging/config.py
+++ b/Lib/logging/config.py
@@ -27,7 +27,13 @@ Copyright (C) 2001-2004 Vinay Sajip. All Rights Reserved.
To use, simply 'import logging' and log away!
"""
-import sys, logging, logging.handlers, string, thread, threading, socket, struct, os
+import sys, logging, logging.handlers, string, socket, struct, os
+
+try:
+ import thread
+ import threading
+except ImportError:
+ thread = None
from SocketServer import ThreadingTCPServer, StreamRequestHandler