From b72921e2f74e13fff7e7ae76b553a014b81d8db9 Mon Sep 17 00:00:00 2001 From: "J. Pery" Date: Wed, 6 Feb 2019 10:53:07 +0100 Subject: [PATCH] Fixed bug where multiple instances of dejavu where not working --- dejavu/database_sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dejavu/database_sql.py b/dejavu/database_sql.py index 031bdcb..abb30a9 100755 --- a/dejavu/database_sql.py +++ b/dejavu/database_sql.py @@ -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: