diff --git a/indexdigest/database.py b/indexdigest/database.py index ad7c47b..6cf288a 100644 --- a/indexdigest/database.py +++ b/indexdigest/database.py @@ -133,8 +133,7 @@ def query_dict_rows(self, sql): :rtype: dict[] """ # DictCursor is a Cursor class that returns rows as dictionaries - for row in self.query(sql, cursor_class=DictCursor): - yield row + yield from self.query(sql, cursor_class=DictCursor) def query_field(self, sql): """ diff --git a/setup.py b/setup.py index 39af9e9..d7fd381 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ 'dev': [ 'coverage==6.5.0', 'coveralls==3.3.1', - 'pylint==3.0.3', + 'pylint==3.1.0', 'pytest==8.1.1', 'pytest-cov==4.1.0', 'twine==5.0.0',