diff options
author | v-korovin <v-korovin@yandex-team.com> | 2024-09-26 10:35:27 +0300 |
---|---|---|
committer | v-korovin <v-korovin@yandex-team.com> | 2024-09-26 10:44:46 +0300 |
commit | c9843510b39357d5510030691beecfab56e3bd17 (patch) | |
tree | 990009b83044e936303dec6b770033b46f59c6fc /build/scripts/link_dyn_lib.py | |
parent | 1339bbde1687911362cf2a244869e30003508986 (diff) | |
download | ydb-c9843510b39357d5510030691beecfab56e3bd17.tar.gz |
futurize build/scripts
commit_hash:41fb885eb1e03094e65521671349e66f4225321b
Diffstat (limited to 'build/scripts/link_dyn_lib.py')
-rw-r--r-- | build/scripts/link_dyn_lib.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/build/scripts/link_dyn_lib.py b/build/scripts/link_dyn_lib.py index 72937544b6..3e62f4c407 100644 --- a/build/scripts/link_dyn_lib.py +++ b/build/scripts/link_dyn_lib.py @@ -1,3 +1,4 @@ +from __future__ import print_function import sys import os import subprocess @@ -264,8 +265,8 @@ if __name__ == '__main__': thinlto_cache.postprocess(opts) if proc.returncode: - print >> sys.stderr, 'linker has failed with retcode:', proc.returncode - print >> sys.stderr, 'linker command:', shlex_join(cmd) + print('linker has failed with retcode:', proc.returncode, file=sys.stderr) + print('linker command:', shlex_join(cmd), file=sys.stderr) sys.exit(proc.returncode) if opts.fix_elf: @@ -274,8 +275,8 @@ if __name__ == '__main__': proc.communicate() if proc.returncode: - print >> sys.stderr, 'fix_elf has failed with retcode:', proc.returncode - print >> sys.stderr, 'fix_elf command:', shlex_join(cmd) + print('fix_elf has failed with retcode:', proc.returncode, file=sys.stderr) + print('fix_elf command:', shlex_join(cmd), file=sys.stderr) sys.exit(proc.returncode) if opts.soname and opts.soname != opts.target: |