Skip to content

Commit 95e1d1a

Browse files
author
Daniel Li
committed
Fix thread support check for Python 3
Fixes #289.
1 parent adf9dc4 commit 95e1d1a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/ldap/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ def release(self):
5454

5555
try:
5656
# Check if Python installation was build with thread support
57-
import thread
57+
import threading
5858
except ImportError:
5959
LDAPLockBaseClass = DummyLock
6060
else:
61-
import threading
6261
LDAPLockBaseClass = threading.Lock
6362

6463

0 commit comments

Comments
 (0)