Bug 1397427 - Enable py2 linter on tools/tryselect, r=ahal draft
authorruby <akriti.v10@gmail.com>
Wed, 13 Sep 2017 11:57:47 +0530
changeset 663501 6a97dda2be81fa45601c2f09486c4a187f177cf5
parent 662980 b0e945eed81db8bf076daf64e381c514f70144f0
child 731238 f1b2319932cbef6f94e00beab0767108beee9914
push id79474
push userbmo:akriti.v10@gmail.com
push dateWed, 13 Sep 2017 06:29:09 +0000
reviewersahal
bugs1397427
milestone57.0a1
Bug 1397427 - Enable py2 linter on tools/tryselect, r=ahal MozReview-Commit-ID: K12XisbVQGq
tools/lint/py2.yml
tools/tryselect/vcs.py
--- a/tools/lint/py2.yml
+++ b/tools/lint/py2.yml
@@ -58,14 +58,13 @@ py2:
         - tools/git/eslintvalidate.py
         - tools/jprof/split-profile.py
         - tools/lint
         - tools/mach_commands.py
         - tools/mercurial/eslintvalidate.py
         - tools/power/mach_commands.py
         - tools/profiler
         - tools/rb
-        - tools/tryselect
         - tools/update-packaging
         - xpcom
     extensions: ['py']
     type: external
     payload: python.compat:lintpy2
--- a/tools/tryselect/vcs.py
+++ b/tools/tryselect/vcs.py
@@ -1,12 +1,14 @@
 # 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/.
 
+from __future__ import absolute_import, print_function
+
 import json
 import os
 import subprocess
 import sys
 from abc import ABCMeta, abstractmethod, abstractproperty
 
 GIT_CINNABAR_NOT_FOUND = """
 Could not detect `git-cinnabar`.