Mercurial > public > mercurial-scm > hg-stable
diff tests/test-ancestor.py @ 32331:bd872f64a8ba
cleanup: use set literals
We no longer support Python 2.6, so we can now use set literals.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 10 Feb 2017 16:56:29 -0800 |
parents | d83ca854fa21 |
children | 20d70df64e93 |
line wrap: on
line diff
--- a/tests/test-ancestor.py Sat May 06 04:51:25 2017 +0530 +++ b/tests/test-ancestor.py Fri Feb 10 16:56:29 2017 -0800 @@ -49,7 +49,7 @@ def buildancestorsets(graph): ancs = [None] * len(graph) for i in xrange(len(graph)): - ancs[i] = set([i]) + ancs[i] = {i} if graph[i] == [nullrev]: continue for p in graph[i]: