diff tests/generate-working-copy-states.py @ 32291: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 3cf1995dbdd5
children 27ab9264dd61
line wrap: on
line diff
--- a/tests/generate-working-copy-states.py	Sat May 06 04:51:25 2017 +0530
+++ b/tests/generate-working-copy-states.py	Fri Feb 10 16:56:29 2017 -0800
@@ -47,7 +47,7 @@
                                  content in parentcontents]) + "-" + tracked
             yield (filename, parentcontents)
     else:
-        for content in (set([None, 'content' + str(depth + 1)]) |
+        for content in ({None, 'content' + str(depth + 1)} |
                       set(parentcontents)):
             for combination in generatestates(maxchangesets,
                                               parentcontents + [content]):