Bug 1372721 - Use set literals; r=dustin
authorGregory Szorc <gps@mozilla.com>
Tue, 13 Jun 2017 14:15:46 -0700
changeset 363709 38faa7d2c936221cd97115488c9940e5c70bc232
parent 363708 dcfbcac9801aed55ada409bc0434bc66c40b6b46
child 363710 c01b9173e0b51cadbbbfb9d01fcd5c959de752cf
push id44668
push usergszorc@mozilla.com
push dateTue, 13 Jun 2017 23:33:55 +0000
treeherderautoland@c3a290d58b7d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1372721
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1372721 - Use set literals; r=dustin We require Python 2.7. We can have nice things. MozReview-Commit-ID: 8okTAgRZTFP
taskcluster/taskgraph/util/attributes.py
--- a/taskcluster/taskgraph/util/attributes.py
+++ b/taskcluster/taskgraph/util/attributes.py
@@ -1,26 +1,26 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 import re
 
 
-INTEGRATION_PROJECTS = set([
+INTEGRATION_PROJECTS = {
     'mozilla-inbound',
     'autoland',
-])
+}
 
-RELEASE_PROJECTS = set([
+RELEASE_PROJECTS = {
     'mozilla-central',
     'mozilla-aurora',
     'mozilla-beta',
     'mozilla-release',
-])
+}
 
 
 def attrmatch(attributes, **kwargs):
     """Determine whether the given set of task attributes matches.  The
     conditions are given as keyword arguments, where each keyword names an
     attribute.  The keyword value can be a literal, a set, or a callable.  A
     literal must match the attribute exactly.  Given a set, the attribute value
     must be in the set.  A callable is called with the attribute value.  If an