Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae21d4d7 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7829765 from cf18c9d3 to tm-d1-release

Change-Id: I8419a142b895cee37b5dbd6b17edbf459a1ec6e7
parents 225e9182 cf18c9d3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: