aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar laszlocsomor <laszlocsomor@google.com>2017-08-10 11:43:22 +0200
committerGravatar Marcel Hlopko <hlopko@google.com>2017-08-10 13:48:21 +0200
commit3a5002f119fe1d37d897445f21f3ad650caf83c6 (patch)
tree016aeb5399c85570c6b94e479a68e90898e0e361
parent1e91fa5da8a1833b66984ec470295002d328b7f9 (diff)
Android,tools: don't open zip file in binary mode
Zip files are always opened in binary mode and the ctor doesn't accept "b" in the mode string. RELNOTES: none PiperOrigin-RevId: 164832193
-rw-r--r--tools/android/aar_embedded_jars_extractor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/android/aar_embedded_jars_extractor.py b/tools/android/aar_embedded_jars_extractor.py
index 305d38a5e4..fcdc301a96 100644
--- a/tools/android/aar_embedded_jars_extractor.py
+++ b/tools/android/aar_embedded_jars_extractor.py
@@ -47,7 +47,7 @@ def ExtractEmbeddedJars(aar, singlejar_param_file, output_dir):
def main():
- with zipfile.ZipFile(FLAGS.input_aar, "rb") as aar:
+ with zipfile.ZipFile(FLAGS.input_aar, "r") as aar:
with open(FLAGS.output_singlejar_param_file, "wb") as singlejar_param_file:
ExtractEmbeddedJars(aar, singlejar_param_file, FLAGS.output_dir)