Skip to content

Commit 95e1d1a

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy