Bug 1176642 - Use absolute_import in mozfile; r=chmanchester
authorGregory Szorc <gps@mozilla.com>
Thu, 25 Jun 2015 12:13:08 -0700
changeset 268301 99b9307a60f1628be6ec5cabd2933366d2925452
parent 268300 9d5ca5c11b73348f512743e7dccf45a474ef2681
child 268302 101600812e66deb86c9624438ccd0e32fb6ea4fa
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-esr52@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschmanchester
bugs1176642
milestone41.0a1
Bug 1176642 - Use absolute_import in mozfile; r=chmanchester
testing/mozbase/mozfile/mozfile/__init__.py
testing/mozbase/mozfile/mozfile/mozfile.py
--- a/testing/mozbase/mozfile/mozfile/__init__.py
+++ b/testing/mozbase/mozfile/mozfile/__init__.py
@@ -1,5 +1,7 @@
 # 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 mozfile import *
+from __future__ import absolute_import
+
+from .mozfile import *
--- a/testing/mozbase/mozfile/mozfile/mozfile.py
+++ b/testing/mozbase/mozfile/mozfile/mozfile.py
@@ -1,16 +1,18 @@
 # -*- coding: utf-8 -*-
 
 # 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/.
 
 # We don't import all modules at the top for performance reasons. See Bug 1008943
 
+from __future__ import absolute_import
+
 from contextlib import contextmanager
 import errno
 import os
 import stat
 import time
 import warnings
 
 __all__ = ['extract_tarball',