mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
More syntactic sugar.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
569f9c8878
commit
7c3dc1de84
1 file changed
+4
@@ -105,6 +105,8 @@ class xstransact:
|
||||
return ret
|
||||
|
||||
def gather(self, *args):
|
||||
if len(args) and type(args[0]) != tuple:
|
||||
args = args,
|
||||
ret = []
|
||||
for tup in args:
|
||||
if len(tup) == 2:
|
||||
@@ -122,6 +124,8 @@ class xstransact:
|
||||
return ret
|
||||
|
||||
def store(self, *args):
|
||||
if len(args) and type(args[0]) != tuple:
|
||||
args = args,
|
||||
for tup in args:
|
||||
if len(tup) == 2:
|
||||
(key, val) = tup
|
||||
|
||||