Skip to content

Commit

Permalink
Fixed bug where multiple instances of dejavu where not working
Browse files Browse the repository at this point in the history
  • Loading branch information
JPery committed Feb 6, 2019
1 parent 7f53f2a commit b72921e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dejavu/database_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b72921e

Please sign in to comment.