Bug 1559975 - Make configure.py lint with 'py2' and 'py3' r=catlee
authorJustin Wood <callek@mozilla.com>
Mon, 08 Jul 2019 17:34:09 +0000
changeset 481702 24f42baee33a7fec9cc35dca19595920c5911449
parent 481701 f3fda3d6fc45adc412cc605811e365c253f19af8
child 481703 9c5b3c7e1ca2240f765d62466cc917ad778407ef
push id113632
push usernbeleuzu@mozilla.com
push dateTue, 09 Jul 2019 03:54:50 +0000
treeherdermozilla-inbound@d178951a5dcb [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 configure.py lint with 'py2' and 'py3' r=catlee Depends on D36090 Differential Revision: https://phabricator.services.mozilla.com/D36091
configure.py
tools/lint/py2.yml
--- a/configure.py
+++ b/configure.py
@@ -1,13 +1,13 @@
 # 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 print_function, unicode_literals
+from __future__ import absolute_import, print_function, unicode_literals
 
 import codecs
 import itertools
 import logging
 import os
 import sys
 import textwrap
 
--- a/tools/lint/py2.yml
+++ b/tools/lint/py2.yml
@@ -1,17 +1,16 @@
 ---
 py2:
     description: Python 2 compatibility check
     include: ['.']
     exclude:
         - build
         - client.py
         - config
-        - configure.py
         - dom
         - editor
         - gfx
         - ipc
         - js/src
         - js/xpconnect
         - layout
         - media