Skip to content

Commit

Permalink
pass the user agent and cookie file correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
williamh committed Mar 21, 2011
1 parent 9ef2368 commit 96bb373
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyzilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ def info(self):
class BugZilla(xmlrpclib.Server):
def __init__(self, url, verbose = False, cookiefile = None,
user_agent=None):
xmlrpclib.Server.__init__(self, url, CookieAuthXMLRPCTransport(),
verbose = verbose,
cookiefile = cookiefile,
user_agent = user_agent)
xmlrpclib.Server.__init__(self, url,
CookieAuthXMLRPCTransport(cookiefile = cookiefile,
user_agent = user_agent),
verbose = verbose)

def login(self, username, password):
self.User.login (dict(login=username,
Expand Down

0 comments on commit 96bb373

Please sign in to comment.