Backed out changeset 919c542f5b8b (bug 1720951) for causing build bustages and py3 failures in test_jarmaker.py.

CLOSED TREE
This commit is contained in:
Brindusan Cristian 2021-07-20 19:02:16 +03:00
Родитель f928f3a26d
Коммит 262e09aeea
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -23,6 +23,7 @@ from time import localtime
from MozZipFile import ZipFile
from mozbuild.preprocessor import Preprocessor
from mozbuild.action.buildlist import addEntriesToListFile
from mozbuild.util import ensure_bytes
from mozpack.files import FileFinder
import mozpack.path as mozpath
@ -50,7 +51,7 @@ class ZipEntry(object):
def write(self, content):
"""Append the given content to this zip entry"""
self._inner.write(content.encode("utf-8"))
self._inner.write(ensure_bytes(content))
return
def close(self):
@ -604,7 +605,7 @@ class JarMaker(object):
os.symlink(src, out)
else:
# On Win32, use ctypes to create a hardlink
rv = CreateHardLink(out.encode("utf-8"), src.encode("utf-8"), None)
rv = CreateHardLink(ensure_bytes(out), ensure_bytes(src), None)
if rv == 0:
raise WinError()