Merge "Convert soong_to_convert.py to python 3" am: e32ad5e482
Original change: https://android-review.googlesource.com/c/platform/build/+/2288542 Change-Id: I4eda08308a76a034161fc804dd4c165dbfee723b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016 The Android Open Source Project
|
# Copyright (C) 2016 The Android Open Source Project
|
||||||
#
|
#
|
||||||
@@ -50,9 +50,6 @@ that Make can detect are listed in parenthesis after the module:
|
|||||||
Not all problems can be discovered, but this is a starting point.
|
Not all problems can be discovered, but this is a starting point.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import csv
|
import csv
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@@ -113,7 +110,7 @@ def display(results):
|
|||||||
|
|
||||||
def main(filename):
|
def main(filename):
|
||||||
"""Read the CSV file, print the results"""
|
"""Read the CSV file, print the results"""
|
||||||
with open(filename, 'rb') as csvfile:
|
with open(filename, 'r') as csvfile:
|
||||||
results = process(csv.reader(csvfile))
|
results = process(csv.reader(csvfile))
|
||||||
|
|
||||||
native_results = filter(results, "native")
|
native_results = filter(results, "native")
|
||||||
|
Reference in New Issue
Block a user