def get_dialect(self):
 try:
  module = getattr(__import__(('sqlalchemy.databases.%s' % self.drivername)).databases, self.drivername)
  return module.dialect
 except ImportError:
  if True:
   import pkg_resources
   for res in pkg_resources.iter_entry_points('sqlalchemy.databases'):
    if (res.name == self.drivername):
     return res.load()
  raise

def get_dialect ( self ) : try : module = getattr ( __import__ ( ( 'sqlalchemy.databases.%s' % self . drivername ) ) . databases , self . drivername ) return module . dialect except ImportError : if True : import pkg_resources for res in pkg_resources . iter_entry_points ( 'sqlalchemy.databases' ) : if ( res . name == self . drivername ) : return res . load ( ) raise
return the sqlalchemy database dialect class corresponding to this urls driver name .