python/dist/src/Lib/logging config.py,1.10,1.11
Update of /cvsroot/python/python/dist/src/Lib/logging In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28658 Modified Files: config.py Log Message: Handle errors in imports of thread, threading Index: config.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/logging/config.py,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- config.py 24 Sep 2004 11:45:13 -0000 1.10 +++ config.py 18 Feb 2005 11:54:46 -0000 1.11 @@ -27,7 +27,13 @@ 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
participants (1)
-
vsajip@users.sourceforge.net