mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
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:
parent
fe63c8ad32
commit
86a442fb62
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ import subprocess
|
||||||
output = subprocess.check_output(
|
output = subprocess.check_output(
|
||||||
"nm --radix=d -g --demangle -l --print-size CMakeFiles/fishlib.dir/src/*.o",
|
"nm --radix=d -g --demangle -l --print-size CMakeFiles/fishlib.dir/src/*.o",
|
||||||
shell=True,
|
shell=True,
|
||||||
text=True,
|
universal_newlines=True,
|
||||||
)
|
)
|
||||||
files_by_name = {} # Symbol to set of paths
|
files_by_name = {} # Symbol to set of paths
|
||||||
sizes_by_name = {} # Symbol to set of int sizes
|
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)
|
print("\t\t%s" % filename)
|
||||||
|
|
||||||
if odr_violations == 0:
|
if odr_violations == 0:
|
||||||
print("No ODR violations found, hooray")
|
print("No ODR violations found, hooray\n")
|
||||||
|
|
||||||
# Show potential weak symbols.
|
# Show potential weak symbols.
|
||||||
suspicious_odrs = 0
|
suspicious_odrs = 0
|
||||||
|
|
Loading…
Reference in a new issue