import xmlrpclib
from .ticket import Ticket


def connect(user, host, password):
    url = 'https://%s:%s@%s/trac/login/xmlrpc' % (user, password, host)
    server = xmlrpclib.ServerProxy(url)
    return Ticket(server)

__all__ = ['connect']

import xmlrpclib
from .ticket import Ticket


def connect(host, user, password):
    url = 'https://%s:%s@%s/trac/login/xmlrpc' % (user, password, host)
    server = xmlrpclib.ServerProxy(url)
    return Ticket(server)

__all__ = ['connect']

fix option ordering