Fixed #6147 -- Typo fix (that amazingly didn't stop the code working) in the code for loading a database module. Thanks, guido@python.org.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6903 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-12-09 10:18:56 +00:00
parent b3c01b389c
commit 90093e7965
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ except ImportError, e:
raise # If there's some other error, this must be an error in Django itself. raise # If there's some other error, this must be an error in Django itself.
def _import_database_module(import_path='', module_name=''): def _import_database_module(import_path='', module_name=''):
"""Lazyily import a database module when requested.""" """Lazily import a database module when requested."""
return __import__('%s%s.%s' % (_import_path, settings.DATABASE_ENGINE, module_name), {}, {}, ['']) return __import__('%s%s.%s' % (import_path, settings.DATABASE_ENGINE, module_name), {}, {}, [''])
# We don't want to import the introspect/creation modules unless # We don't want to import the introspect/creation modules unless
# someone asks for 'em, so lazily load them on demmand. # someone asks for 'em, so lazily load them on demmand.