Use relative import statements to be compatible with Python3

This commit is contained in:
marmeladema 2019-10-20 19:43:53 +01:00
parent 865d7377b3
commit bed6f2dbec
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ import zipfile
from xml.etree.ElementTree import XML from xml.etree.ElementTree import XML
from servo.util import download_file from servo.util import download_file
import six.moves.urllib as urllib import six.moves.urllib as urllib
from bootstrap import check_gstreamer_lib from .bootstrap import check_gstreamer_lib
from mach.decorators import CommandArgument from mach.decorators import CommandArgument
from mach.registrar import Registrar from mach.registrar import Registrar

View file

@ -24,7 +24,7 @@ import colorama
import toml import toml
import voluptuous import voluptuous
import yaml import yaml
from licenseck import OLD_MPL, MPL, APACHE, COPYRIGHT, licenses_toml, licenses_dep_toml from .licenseck import OLD_MPL, MPL, APACHE, COPYRIGHT, licenses_toml, licenses_dep_toml
from six import iteritems from six import iteritems
topdir = os.path.abspath(os.path.dirname(sys.argv[0])) topdir = os.path.abspath(os.path.dirname(sys.argv[0]))
wpt = os.path.join(topdir, "tests", "wpt") wpt = os.path.join(topdir, "tests", "wpt")