mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
commit
5245f9ff27
2 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ def archive_deterministically(dir_to_archive, dest_archive, prepend_path=None):
|
|||
arcname = os.path.normpath(os.path.join(prepend_path, arcname))
|
||||
zip_file.write(entry, arcname=arcname)
|
||||
else:
|
||||
with gzip.GzipFile('wb', fileobj=out_file, mtime=0) as gzip_file:
|
||||
with gzip.GzipFile(mode='wb', fileobj=out_file, mtime=0) as gzip_file:
|
||||
with tarfile.open(fileobj=gzip_file, mode='w:') as tar_file:
|
||||
for entry in file_list:
|
||||
arcname = entry
|
||||
|
|
|
@ -106,7 +106,7 @@ def get_taskcluster_secret(name):
|
|||
|
||||
def otool(s):
|
||||
o = subprocess.Popen(['/usr/bin/otool', '-L', s], stdout=subprocess.PIPE)
|
||||
for line in o.stdout:
|
||||
for line in map(lambda s: s.decode('ascii'), o.stdout):
|
||||
if line[0] == '\t':
|
||||
yield line.split(' ', 1)[0][1:]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue