Ticket #6147: db_init.diff
File db_init.diff, 634 bytes (added by , 17 years ago) |
---|
-
db/__init__.py
35 35 36 36 def _import_database_module(import_path='', module_name=''): 37 37 """Lazyily import a database module when requested.""" 38 return __import__('%s%s.%s' % ( _import_path, settings.DATABASE_ENGINE, module_name), {}, {}, [''])38 return __import__('%s%s.%s' % (import_path, settings.DATABASE_ENGINE, module_name), {}, {}, ['']) 39 39 40 40 # We don't want to import the introspect/creation modules unless 41 41 # someone asks for 'em, so lazily load them on demmand.