Skip to content

Commit

Permalink
Fix thread support check for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Li committed May 21, 2019
1 parent adf9dc4 commit 95e1d1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/ldap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ def release(self):

try:
# Check if Python installation was build with thread support
import thread
import threading
except ImportError:
LDAPLockBaseClass = DummyLock
else:
import threading
LDAPLockBaseClass = threading.Lock


Expand Down

0 comments on commit 95e1d1a

Please sign in to comment.