Bug 1594350 - Fix two python pycompat warnings r=ahal
authorSylvestre Ledru <sledru@mozilla.com>
Fri, 15 Nov 2019 20:52:59 +0000
changeset 502289 c078f40b72b1c246d0475e443bfa70fb7e74db2e
parent 502288 10d924f0c08118b3241a0fe60e3ee7af59ad68ef
child 502290 63815205b4125472179488e6bf2e1123a1414390
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1594350
milestone72.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 1594350 - Fix two python pycompat warnings r=ahal Differential Revision: https://phabricator.services.mozilla.com/D52250
tools/docs/moztreedocs/__init__.py
xpcom/base/ErrorList.py
--- a/tools/docs/moztreedocs/__init__.py
+++ b/tools/docs/moztreedocs/__init__.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 absolute_import, unicode_literals
+from __future__ import absolute_import, unicode_literals, print_function
 
 import os
 import yaml
 
 from mozbuild.base import MozbuildObject
 from mozbuild.frontend.reader import BuildReader
 from mozbuild.util import memoize
 from mozpack.copier import FileCopier
--- a/xpcom/base/ErrorList.py
+++ b/xpcom/base/ErrorList.py
@@ -1,9 +1,10 @@
 #!/usr/bin/env python
+from __future__ import absolute_import
 from collections import OrderedDict
 
 
 class Mod:
     """
     A nserror module. When used with a `with` statement, binds the itself to
     Mod.active.
     """