From a2c7f115e34058ce74b3984fd94c73f6fb3b2be5 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Thu, 13 Sep 2007 14:39:05 -0400 Subject: Use tuples instead of dicts in multicalls (mostly for style reasons) --- bugzilla.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bugzilla.py') diff --git a/bugzilla.py b/bugzilla.py index 184d0f6..37a7b41 100644 --- a/bugzilla.py +++ b/bugzilla.py @@ -158,12 +158,12 @@ class Bugzilla(object): appropriate product name, after connecting to Bugzilla. This will cache all the info for you and save you an ugly delay later on.''' c = [{'methodName':'bugzilla.getQueryInfo', - 'params':[self.user,self.password]}, + 'params':(self.user,self.password)}, {'methodName':'bugzilla.getProdInfo', - 'params':[self.user,self.password]}] + 'params':(self.user,self.password)}] if product: c.append({'methodName':'bugzilla.getProdCompInfo', - 'params':[product,self.user,self.password]}) + 'params':(product,self.user,self.password)}) r = self._proxy.system.multicall(c) (self._querydata,self._querydefaults) = r[0] self._products = r[1] @@ -172,7 +172,7 @@ class Bugzilla(object): # In theory, there should be some way to set a variable on Bug # such that it contains attributes for all the keys listed in the # getBug call. This isn't it, though. - #{'methodName':'bugzilla.getBug','params':[1,self.user,self.password]} + #{'methodName':'bugzilla.getBug','params':(1,self.user,self.password)} #Bug.__slots__ = r[3].keys() -- cgit