mirror of
https://github.com/correl/dejavu.git
synced 2024-12-27 11:07:37 +00:00
Merge pull request #185 from JPery/MultipleInstancesFix
Fixed bug where multiple instances of dejavu where not working
This commit is contained in:
commit
d2b8761eb3
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