Bug 1559975 - Make python/mozbuild lint with 'py2' and 'py3' r=catlee
authorJustin Wood <Callek@gmail.com>
Fri, 05 Jul 2019 14:36:43 +0000
changeset 541160 98dd5736b3037ec51947bdbe59040a4346b12fd6
parent 541159 144f35689cd28ca075ef85c75cceae33b56bea3a
child 541161 fb193ef6ed3f768bd7fd16f6ee7d642d19c584a7
push id11533
push userarchaeopteryx@coole-files.de
push dateMon, 08 Jul 2019 18:18:03 +0000
treeherdermozilla-beta@f4452e031aed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscatlee
bugs1559975
milestone69.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 1559975 - Make python/mozbuild lint with 'py2' and 'py3' r=catlee Differential Revision: https://phabricator.services.mozilla.com/D36090
python/mozbuild/dumbmake/test/test_dumbmake.py
python/mozbuild/mozbuild/action/tooltool.py
python/mozbuild/mozbuild/artifact_commands.py
python/mozbuild/setup.py
tools/lint/py2.yml
--- a/python/mozbuild/dumbmake/test/test_dumbmake.py
+++ b/python/mozbuild/dumbmake/test/test_dumbmake.py
@@ -1,12 +1,12 @@
 # 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 unicode_literals
+from __future__ import absolute_import, unicode_literals
 
 import unittest
 
 from mozunit import (
     main,
 )
 
 from dumbmake.dumbmake import (
--- a/python/mozbuild/mozbuild/action/tooltool.py
+++ b/python/mozbuild/mozbuild/action/tooltool.py
@@ -18,16 +18,17 @@
 # 02110-1301, USA.
 
 # A manifest file specifies files in that directory that are stored
 # elsewhere. This file should only list files in the same directory
 # in which the manifest file resides and it should be called
 # 'manifest.tt'
 
 from __future__ import print_function
+from __future__ import absolute_import
 
 import base64
 import calendar
 import hashlib
 import hmac
 import json
 import logging
 import math
--- a/python/mozbuild/mozbuild/artifact_commands.py
+++ b/python/mozbuild/mozbuild/artifact_commands.py
@@ -1,8 +1,9 @@
+from __future__ import absolute_import
 import argparse
 import hashlib
 import json
 import logging
 import os
 import shutil
 
 from collections import OrderedDict
--- a/python/mozbuild/setup.py
+++ b/python/mozbuild/setup.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
+
 from setuptools import setup, find_packages
 
 VERSION = '0.2'
 
 setup(
     author='Mozilla Foundation',
     author_email='dev-builds@lists.mozilla.org',
     name='mozbuild',
--- a/tools/lint/py2.yml
+++ b/tools/lint/py2.yml
@@ -18,17 +18,16 @@ py2:
         - mobile
         - modules
         - mozglue
         - netwerk
         - nsprpub
         - other-licenses
         - python/devtools
         - python/mach
-        - python/mozbuild
         - security
         - servo
         - taskcluster/docker/funsize-update-generator
         - testing/awsy
         - testing/gtest
         - testing/mochitest
         - testing/mozharness
         - testing/raptor