Browse files

Fixed #2632 -- Made django.db.backends.util._dict_helper more efficie…

…nt. Thanks for the patch, Andy Dustman

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent fe5462e commit 401b15d853a954c3a7c3c7d43fca0211b2252872 @adrianholovaty adrianholovaty committed Aug 31, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/backends/
@@ -98,7 +98,7 @@ def rev_typecast_boolean(obj, d):
def _dict_helper(desc, row):
"Returns a dictionary for the given cursor.description and result row."
- return dict([(desc[col[0]][0], col[1]) for col in enumerate(row)])
+ return dict(zip([col[0] for col in desc], row))
def dictfetchone(cursor):
"Returns a row from the cursor as a dict"

0 comments on commit 401b15d

Please sign in to comment.