def METHOD_NAME(self, url):
    opts = url.translate_connect_args(username='user')
    if opts.get('port'):
        opts['host'] = "%s/%s" % (opts['host'], opts['port'])
        del opts['port']
    opts.update(url.query)
    util.coerce_kw_type(opts, 'type_conv', int)
    return ([], opts)