Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed _dict_helper() DB backend helper function, as it wasn't being…

… used anymore

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c2c3e930963d1a4786bd31451f091b04e2ecc35b 1 parent a6a5e3c
Adrian Holovaty authored
4  django/db/backends/__init__.py
@@ -5,10 +5,6 @@
5 5
     # Import copy of _thread_local.py from Python 2.4
6 6
     from django.utils._threading_local import local
7 7
 
8  
-def _dict_helper(desc, row):
9  
-    "Returns a dictionary for the given cursor.description and result row."
10  
-    return dict(zip([col[0] for col in desc], row))
11  
-
12 8
 class BaseDatabaseWrapper(local):
13 9
     """
14 10
     Represents a database connection.
8  django/db/backends/util.py
@@ -124,11 +124,3 @@ def truncate_name(name, length=None):
124 124
     hash = md5.md5(name).hexdigest()[:4]
125 125
 
126 126
     return '%s%s' % (name[:length-4], hash)
127  
-
128  
-##################################################################################
129  
-# Helper functions for dictfetch* for databases that don't natively support them #
130  
-##################################################################################
131  
-
132  
-def _dict_helper(desc, row):
133  
-    "Returns a dictionary for the given cursor.description and result row."
134  
-    return dict(zip([col[0] for col in desc], row))

0 notes on commit c2c3e93

Please sign in to comment.
Something went wrong with that request. Please try again.