Bug 1397427 - Enable py2 linter on tools/tryselect, r=ahal
MozReview-Commit-ID: K12XisbVQGq
--- 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`.