Skip to content

Commit cebb405

Browse files
committed
Merge pull request #432 from w-diesel/patch-4
map() returns an iterator on Python 3.
2 parents 24c8ef4 + 2194f89 commit cebb405

File tree

1 file changed

+1
-1
lines changed
  • debug_toolbar/utils/tracking

1 file changed

+1
-1
lines changed

debug_toolbar/utils/tracking/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def execute(self, sql, params=()):
9898
stacktrace = []
9999
_params = ''
100100
try:
101-
_params = json.dumps(map(self._decode, params))
101+
_params = json.dumps(list(map(self._decode, params)))
102102
except Exception:
103103
pass # object not JSON serializable
104104

0 commit comments

Comments
 (0)