devtools/repotest.py
changeset 9835 5ad968dd9d51
parent 9834 807f7a6f33f4
child 9850 5ef9dd383ae2
--- a/devtools/repotest.py	Wed Jun 04 11:34:19 2014 +0200
+++ b/devtools/repotest.py	Wed Jun 04 12:41:21 2014 +0200
@@ -26,11 +26,8 @@
 
 from logilab.common.testlib import SkipTest
 
-def tuplify(list):
-    for i in range(len(list)):
-        if type(list[i]) is not type(()):
-            list[i] = tuple(list[i])
-    return list
+def tuplify(mylist):
+    return [tuple(item) for item in mylist]
 
 def snippet_cmp(a, b):
     a = (a[0], [e.expression for e in a[1]])