[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] More syntactic sugar.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 1585590ec4746fe8b09d3c8856e1dd2fb303dada
# Parent  bc5dbfe729e0ac4c1de007d7608e3ec96d369674
More syntactic sugar.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r bc5dbfe729e0 -r 1585590ec474 
tools/python/xen/xend/xenstore/xstransact.py
--- a/tools/python/xen/xend/xenstore/xstransact.py      Wed Sep 14 19:30:08 2005
+++ b/tools/python/xen/xend/xenstore/xstransact.py      Wed Sep 14 19:34:13 2005
@@ -105,6 +105,8 @@
         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 @@
         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

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.