Bug 1372721 - Use set literals; r?dustin draft
authorGregory Szorc <gps@mozilla.com>
Tue, 13 Jun 2017 14:15:46 -0700
changeset 593582 0bba7dfd8279bc9103b6e38428a0f0c573832d2a
parent 593581 aea365a9a8ecd9ec83892c35cd491a74113e0179
child 593583 18aaf6c256373373ed273c3853f6cc8c37d29a67
push id63744
push userbmo:gps@mozilla.com
push dateTue, 13 Jun 2017 21:45:48 +0000
reviewersdustin
bugs1372721
milestone56.0a1
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