mirror of
https://github.com/correl/dejavu.git
synced 2024-12-27 11:07:37 +00:00
Fixed bug where multiple instances of dejavu where not working
This commit is contained in:
parent
7f53f2ab68
commit
b72921e2f7
1 changed files with 1 additions and 1 deletions
|
@ -333,11 +333,11 @@ class Cursor(object):
|
|||
cur.execute(query)
|
||||
```
|
||||
"""
|
||||
_cache = Queue.Queue(maxsize=5)
|
||||
|
||||
def __init__(self, cursor_type=mysql.cursors.Cursor, **options):
|
||||
super(Cursor, self).__init__()
|
||||
|
||||
self._cache = Queue.Queue(maxsize=5)
|
||||
try:
|
||||
conn = self._cache.get_nowait()
|
||||
except Queue.Empty:
|
||||
|
|
Loading…
Reference in a new issue