Bug 1176642 - Use absolute_import in mozinfo; r=chmanchester

absolute_import was introduced in Python 2.6. There should be no
backwards compatibility concern here.
This commit is contained in:
Gregory Szorc 2015-06-25 12:12:39 -07:00
parent 3e56f45d4a
commit fb5ea3afd6
2 changed files with 7 additions and 2 deletions

View File

@ -2,6 +2,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file, # 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/. # You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import absolute_import
""" """
interface to transform introspected system information to a format palatable to interface to transform introspected system information to a format palatable to
Mozilla Mozilla
@ -51,6 +53,7 @@ Module variables:
""" """
import mozinfo from . import mozinfo
from mozinfo import * from .mozinfo import *
__all__ = mozinfo.__all__ __all__ = mozinfo.__all__

View File

@ -8,6 +8,8 @@
# linux) to the information; I certainly wouldn't want anyone parsing this # linux) to the information; I certainly wouldn't want anyone parsing this
# information and having behaviour depend on it # information and having behaviour depend on it
from __future__ import absolute_import
import os import os
import platform import platform
import re import re