diff tests/drawdag.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 d761ef24d6e1
children 911057981ba4
line wrap: on
line diff
--- a/tests/drawdag.py	Sat May 06 04:51:25 2017 +0530
+++ b/tests/drawdag.py	Fri Feb 10 16:56:29 2017 -0800
@@ -145,7 +145,7 @@
     def parents(y, x):
         """(int, int) -> [str]. follow the ASCII edges at given position,
         return a list of parents"""
-        visited = set([(y, x)])
+        visited = {(y, x)}
         visit = []
         result = []