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

Commit 477a8358 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Make common.py python3 compatible" am: 7b6988c0

Original change: https://android-review.googlesource.com/c/platform/build/+/1582503

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I387a41eb29c5573855f376448c4b4958904849a5
parents 671d3dc7 7b6988c0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -640,7 +640,7 @@ def ExtractFromInputFile(input_file, fn):
  """Extracts the contents of fn from input zipfile or directory into a file."""
  if isinstance(input_file, zipfile.ZipFile):
    tmp_file = MakeTempFile(os.path.basename(fn))
    with open(tmp_file, 'w') as f:
    with open(tmp_file, 'wb') as f:
      f.write(input_file.read(fn))
    return tmp_file
  else:
@@ -864,8 +864,8 @@ class PartitionBuildProps(object):
    prop_file = GetBootImageBuildProp(boot_img)
    if prop_file is None:
      return ''
    with open(prop_file) as f:
      return f.read().decode()
    with open(prop_file, "r") as f:
      return f.read()

  @staticmethod
  def _ReadPartitionPropFile(input_file, name):