From 95e1d1a8aa9e6aa036f085af1ace3c295e78412b Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Tue, 21 May 2019 10:40:32 -0400 Subject: [PATCH] Fix thread support check for Python 3 Fixes https://github.com/python-ldap/python-ldap/issues/289. --- Lib/ldap/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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