mirror of
https://github.com/correl/dejavu.git
synced 2024-11-23 11:09:52 +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)
|
cur.execute(query)
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
_cache = Queue.Queue(maxsize=5)
|
|
||||||
|
|
||||||
def __init__(self, cursor_type=mysql.cursors.Cursor, **options):
|
def __init__(self, cursor_type=mysql.cursors.Cursor, **options):
|
||||||
super(Cursor, self).__init__()
|
super(Cursor, self).__init__()
|
||||||
|
|
||||||
|
self._cache = Queue.Queue(maxsize=5)
|
||||||
try:
|
try:
|
||||||
conn = self._cache.get_nowait()
|
conn = self._cache.get_nowait()
|
||||||
except Queue.Empty:
|
except Queue.Empty:
|
||||||
|
|
Loading…
Reference in a new issue