aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/releasetools/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py
index ae7da2fb64..33e70b1c8b 100644
--- a/tools/releasetools/common.py
+++ b/tools/releasetools/common.py
@@ -575,7 +575,7 @@ class BuildInfo(object):
def ReadFromInputFile(input_file, fn):
"""Reads the contents of fn from input zipfile or directory."""
if isinstance(input_file, zipfile.ZipFile):
- return input_file.read(fn).decode()
+ return input_file.read(fn).decode('utf-8')
else:
path = os.path.join(input_file, *fn.split("/"))
try: