sancov.py: [Py3] Use bytes.decode() explicitly.

Or bogus filename like "b'foo'" would be generated.

This is part of https://reviews.llvm.org/D27405

llvm-svn: 294307
This commit is contained in:
NAKAMURA Takumi 2017-02-07 14:13:18 +00:00
parent a80383730e
commit b3d0b2d018
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ def UnpackOneFile(path):
if len(header) < 12:
break
pid, module_length, blob_size = struct.unpack('iII', header)
module = f.read(module_length)
module = f.read(module_length).decode('utf-8')
blob = f.read(blob_size)
assert(len(module) == module_length)
assert(len(blob) == blob_size)