We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 820f5bb commit e7bac5cCopy full SHA for e7bac5c
1 file changed
pathtraits/db.py
@@ -28,7 +28,7 @@ def row_factory(cursor, row):
28
:param row: Description
29
"""
30
fields = [column[0] for column in cursor.description]
31
- res = {key: value for key, value in zip(fields, row)}
+ res = dict(zip(fields, row))
32
return res
33
34
@staticmethod
@@ -41,6 +41,7 @@ def merge_rows(rows: list):
41
res = {}
42
for row in rows:
43
for k, v in row.items():
44
+ # pylint: disable=C0201
45
if k in res.keys() and v not in res[k]:
46
res[k].append(v)
47
else:
0 commit comments