

def create_connect_args(self, url):
    opts = url.translate_connect_args(username='user')
    opts.update(url.query)
    port = opts.pop('port', None)
    if (port and ('host' in opts)):
        opts['host'] = ('%s:%s' % (opts['host'], port))
    return [[], opts]

dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/dialects/mssql/pymssql.py MSDialect_pymssql.create_connect_args/original