Some more drei stuff

This commit is contained in:
Miroslav Stampar
2019-03-28 15:14:16 +01:00
parent 49586ad6dd
commit 4b020c4257
81 changed files with 125 additions and 167 deletions

View File

@@ -113,7 +113,7 @@ except ImportError:
from six.moves import urllib as _urllib
import socket
import thread
import threading
DEBUG = None
@@ -127,7 +127,7 @@ class ConnectionManager:
* keep track of all existing
"""
def __init__(self):
self._lock = thread.allocate_lock()
self._lock = threading.Lock()
self._hostmap = {} # map hosts to a list of connections
self._connmap = {} # map connections to host
self._readymap = {} # map connection to ready state