Make find_weak_odrs work with Python 3.6

`text` is an alias for `universal_newlines` but wasn't introduced until
Python 3.7
This commit is contained in:
Mahmoud Al-Qudsi 2021-10-04 19:45:36 -05:00
parent fe63c8ad32
commit 86a442fb62

View file

@ -12,7 +12,7 @@ import subprocess
output = subprocess.check_output(
"nm --radix=d -g --demangle -l --print-size CMakeFiles/fishlib.dir/src/*.o",
shell=True,
text=True,
universal_newlines=True,
)
files_by_name = {} # Symbol to set of paths
sizes_by_name = {} # Symbol to set of int sizes
@ -47,7 +47,7 @@ for name, sizes in sizes_by_name.items():
print("\t\t%s" % filename)
if odr_violations == 0:
print("No ODR violations found, hooray")
print("No ODR violations found, hooray\n")
# Show potential weak symbols.
suspicious_odrs = 0