contrib/perf.py
changeset 44452 9d2b2df2c2ba
parent 44260 216fc4633800
child 44996 c2df0bca0dfa
--- a/contrib/perf.py	Fri Mar 06 10:52:44 2020 +0100
+++ b/contrib/perf.py	Fri Mar 06 13:27:41 2020 -0500
@@ -2523,7 +2523,7 @@
     }
 
     for diffopt in ('', 'w', 'b', 'B', 'wB'):
-        opts = dict((options[c], b'1') for c in diffopt)
+        opts = {options[c]: b'1' for c in diffopt}
 
         def d():
             ui.pushbuffer()
@@ -3048,7 +3048,7 @@
 
     # Verify engines argument.
     if engines:
-        engines = set(e.strip() for e in engines.split(b','))
+        engines = {e.strip() for e in engines.split(b',')}
         for engine in engines:
             try:
                 util.compressionengines[engine]