Skip to content

Commit

Permalink
Removed _dict_helper() DB backend helper function, as it wasn't being…
Browse files Browse the repository at this point in the history
… used anymore

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Aug 20, 2007
1 parent a6a5e3c commit c2c3e93
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions django/db/backends/__init__.py
Expand Up @@ -5,10 +5,6 @@
# Import copy of _thread_local.py from Python 2.4 # Import copy of _thread_local.py from Python 2.4
from django.utils._threading_local import local from django.utils._threading_local import local


def _dict_helper(desc, row):
"Returns a dictionary for the given cursor.description and result row."
return dict(zip([col[0] for col in desc], row))

class BaseDatabaseWrapper(local): class BaseDatabaseWrapper(local):
""" """
Represents a database connection. Represents a database connection.
Expand Down
8 changes: 0 additions & 8 deletions django/db/backends/util.py
Expand Up @@ -124,11 +124,3 @@ def truncate_name(name, length=None):
hash = md5.md5(name).hexdigest()[:4] hash = md5.md5(name).hexdigest()[:4]


return '%s%s' % (name[:length-4], hash) return '%s%s' % (name[:length-4], hash)

##################################################################################
# Helper functions for dictfetch* for databases that don't natively support them #
##################################################################################

def _dict_helper(desc, row):
"Returns a dictionary for the given cursor.description and result row."
return dict(zip([col[0] for col in desc], row))

0 comments on commit c2c3e93

Please sign in to comment.