summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2007-09-13 14:39:05 -0400
committerWill Woods <wwoods@redhat.com>2007-09-13 14:39:05 -0400
commita2c7f115e34058ce74b3984fd94c73f6fb3b2be5 (patch)
treee2e185071cd60260196b86adb90c31463524f247
parent25a0d539f54da647e026e1c1ef394dde7713ee09 (diff)
downloadpython-bugzilla-a2c7f115e34058ce74b3984fd94c73f6fb3b2be5.tar.gz
python-bugzilla-a2c7f115e34058ce74b3984fd94c73f6fb3b2be5.tar.xz
python-bugzilla-a2c7f115e34058ce74b3984fd94c73f6fb3b2be5.zip
Use tuples instead of dicts in multicalls (mostly for style reasons)
-rw-r--r--bugzilla.py8
1 files changed, 4 insertions, 4 deletions
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()