mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
mozbuild: Encode content of GeneratedFile.
This commit is contained in:
parent
064852f9b3
commit
a05b2fb551
@ -489,7 +489,10 @@ class GeneratedFile(BaseFile):
|
||||
File class for content with no previous existence on the filesystem.
|
||||
'''
|
||||
def __init__(self, content):
|
||||
self.content = content
|
||||
if isinstance(content, str):
|
||||
self.content = content.encode()
|
||||
else:
|
||||
self.content = content
|
||||
|
||||
def open(self, mode='rb'):
|
||||
if 'b' in mode:
|
||||
|
@ -192,7 +192,7 @@ class RemovedFiles(GeneratedFile):
|
||||
return
|
||||
if self.copier.contains(f):
|
||||
errors.error('Removal of packaged file(s): %s' % f)
|
||||
self.content += f + '\n'
|
||||
self.content += f.encode() + b'\n'
|
||||
|
||||
|
||||
def split_define(define):
|
||||
|
Loading…
Reference in New Issue
Block a user