Bug 1714688 - Removed 'if PY3' logic from testing/mozbase r=mhentges

Python2 is no longer used in testing/mozbase

Differential Revision: https://phabricator.services.mozilla.com/D118040
This commit is contained in:
surajeet310 2021-06-16 17:57:48 +00:00
Родитель 84e4f09a3f
Коммит 2241c4ace7
2 изменённых файлов: 4 добавлений и 11 удалений

Просмотреть файл

@ -17,12 +17,7 @@ import mozinfo
import mozunit
PY3 = sys.version_info[0] == 3
if PY3:
# reload() has been moved to importlib in Python 3
# see https://docs.python.org/3.5/library/importlib.html#importlib.reload
from importlib import reload
from importlib import reload
class TestMozinfo(unittest.TestCase):

Просмотреть файл

@ -17,7 +17,7 @@ import zipfile
import requests
from six import PY3, reraise
from six import reraise
import mozfile
import mozinfo
@ -57,10 +57,8 @@ class UninstallError(Exception):
def _readPlist(path):
if PY3:
with open(path, "rb") as fp:
return plistlib.load(fp)
return plistlib.readPlist(path)
with open(path, "rb") as fp:
return plistlib.load(fp)
def get_binary(path, app_name):