WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] More syntactic sugar., Xen patchbot -unstable <=