mirror of
https://github.com/python/cpython
synced 2026-09-29 09:00:29 +03:00
Handle errors in imports of thread, threading
This commit is contained in:
parent
829dc51a05
commit
612df8e21d
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue