summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-10-15 05:39:30 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-10-15 05:39:30 +0200
commitcf18c9d36393544e0fb71ace080ff648d59ea8b9 (patch)
treef24d4e60c188900a0be0c1c1e4824c29a5f68f2a
parentMerge "Add fsck.f2fs to recovery mode" am: 2260b35d5a am: d679cbe825 am: 6874a13f2d am: a2ee2c2b73 am: bd0f210602 (diff)
parentMerge "Update caremap to by py3 compatible" am: 18370833aa am: 61707b973c am: dfeacf45da am: ab99890f6b (diff)
downloadandroid_bootable_recovery-cf18c9d36393544e0fb71ace080ff648d59ea8b9.tar
android_bootable_recovery-cf18c9d36393544e0fb71ace080ff648d59ea8b9.tar.gz
android_bootable_recovery-cf18c9d36393544e0fb71ace080ff648d59ea8b9.tar.bz2
android_bootable_recovery-cf18c9d36393544e0fb71ace080ff648d59ea8b9.tar.lz
android_bootable_recovery-cf18c9d36393544e0fb71ace080ff648d59ea8b9.tar.xz
android_bootable_recovery-cf18c9d36393544e0fb71ace080ff648d59ea8b9.tar.zst
android_bootable_recovery-cf18c9d36393544e0fb71ace080ff648d59ea8b9.zip
-rw-r--r--update_verifier/care_map_generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/update_verifier/care_map_generator.py b/update_verifier/care_map_generator.py
index c6f2dad24..b1396a43c 100644
--- a/update_verifier/care_map_generator.py
+++ b/update_verifier/care_map_generator.py
@@ -111,14 +111,14 @@ def main(argv):
logging.basicConfig(level=logging.INFO if args.verbose else logging.WARNING,
format=logging_format)
- with open(args.input_care_map, 'r') as input_care_map:
+ with open(args.input_care_map, 'rb') as input_care_map:
content = input_care_map.read()
if args.parse_proto:
result = ParseProtoMessage(content, args.fingerprint_enabled).encode()
else:
care_map_proto = GenerateCareMapProtoFromLegacyFormat(
- content.rstrip().splitlines(), args.fingerprint_enabled)
+ content.decode().rstrip().splitlines(), args.fingerprint_enabled)
result = care_map_proto.SerializeToString()
with open(args.output_file, 'wb') as output: