def _auto_fn(name):
 if ('.' in name):
  (dialect, driver) = name.split('.')
 else:
  dialect = name
  driver = 'base'
 if (dialect in _translates):
  translated = _translates[dialect]
  util.warn_deprecated(("The '%s' dialect name has been renamed to '%s'" % (dialect, translated)))
  dialect = translated
 try:
  module = __import__(('sqlalchemy.dialects.%s' % (dialect,))).dialects
 except ImportError:
  return None
 module = getattr(module, dialect)
 if hasattr(module, driver):
  module = getattr(module, driver)
  return (lambda : module.dialect)
 else:
  return None

def _auto_fn ( name ) : if ( '.' in name ) : ( dialect , driver ) = name . split ( '.' ) else : dialect = name driver = 'base' if ( dialect in _translates ) : translated = _translates [ dialect ] util . warn_deprecated ( ( "The '%s' dialect name has been renamed to '%s'" % ( dialect , translated ) ) ) dialect = translated try : module = __import__ ( ( 'sqlalchemy.dialects.%s' % ( dialect , ) ) ) . dialects except ImportError : return None module = getattr ( module , dialect ) if hasattr ( module , driver ) : module = getattr ( module , driver ) return ( lambda : module . dialect ) else : return None
default dialect importer .