author | Aurelien Campeas <aurelien.campeas@logilab.fr> |
Wed, 04 Jun 2014 12:41:21 +0200 | |
changeset 9835 | 5ad968dd9d51 |
parent 9834 | 807f7a6f33f4 |
child 9836 | 71045bb09136 |
--- 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]])