Make open() calls compatible with Python 3.

Python 3 does not support buffering for mode "r+b". config.gz is
opened as a text file, but the default mode for the gzip module
is binary.

Bug: 203436762
Test: atest vts_kernel_net_tests
Change-Id: I2e01efe6a3313947e77786aecbe9dba4b08cc69d
4 files changed
tree: df26f3464d69cea30a59f2423cf32c435dd2cd79
  1. net/
  2. Android.bp
  3. METADATA