diff --git a/Lib/ldap/__init__.py b/Lib/ldap/__init__.py index 951f957..8d67573 100644 --- a/Lib/ldap/__init__.py +++ b/Lib/ldap/__init__.py @@ -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