More syntactic sugar.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-14 19:34:13 +00:00
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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.