Bug 1684584: do not encode `topobjdir` before printing to screen during clobber r=firefox-build-system-reviewers,mhentges

Since the printed value is a `str` anyways, this causes the converted `bytes`
to be printed to the terminal as `b'/path/to/topobjdir'`. Just print the `str`
version to the screen instead.

Differential Revision: https://phabricator.services.mozilla.com/D100792
This commit is contained in:
Connor Sheehan 2021-01-06 01:53:13 +00:00
Родитель 924465d3c7
Коммит 0e3bf9f599
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -228,8 +228,7 @@ class Clobberer(object):
),
)
objdir = self.topobjdir.encode("utf-8", "replace")
print("Automatically clobbering %s" % objdir, file=fh)
print("Automatically clobbering %s" % self.topobjdir, file=fh)
try:
self.remove_objdir(False)
print("Successfully completed auto clobber.", file=fh)