Convert auto_gen_test_config.py to python 3
This script is run by soong, but without specifying the python launcher, so it uses the default "python" in the path, which is python 2. Convert the script to use python 3. Bug: 203436762 Test: Building an internal product that uses this Change-Id: I4496c03b8669c54d080aa45c446dd1f27d91259e
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
#
|
||||
# Copyright (C) 2017 The Android Open Source Project
|
||||
#
|
||||
@@ -69,7 +69,7 @@ def main(argv):
|
||||
module = os.path.splitext(os.path.basename(target_config))[0]
|
||||
instrumentation = instrumentation_elements[0]
|
||||
manifest = manifest_elements[0]
|
||||
if instrumentation.attributes.has_key(ATTRIBUTE_LABEL):
|
||||
if ATTRIBUTE_LABEL in instrumentation.attributes:
|
||||
label = instrumentation.attributes[ATTRIBUTE_LABEL].value
|
||||
else:
|
||||
label = module
|
||||
|
Reference in New Issue
Block a user