aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/go_tool.py
diff options
context:
space:
mode:
authorsnermolaev <snermolaev@yandex-team.com>2024-09-09 04:49:37 +0300
committersnermolaev <snermolaev@yandex-team.com>2024-09-09 04:58:08 +0300
commit2cb42f4e81ff61b9724890830d657cdacab91eec (patch)
tree6bf629bccb09b8025ac2040963904628570947f6 /build/scripts/go_tool.py
parentc008a8208b6b86684b208b98fbffb96567cd9885 (diff)
downloadydb-2cb42f4e81ff61b9724890830d657cdacab91eec.tar.gz
fix DeprecationWarning
dafdaedfdc8d7dd4c6681da5b98a59940c63f548
Diffstat (limited to 'build/scripts/go_tool.py')
-rw-r--r--build/scripts/go_tool.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/scripts/go_tool.py b/build/scripts/go_tool.py
index f11b3b82df..39d55df4d3 100644
--- a/build/scripts/go_tool.py
+++ b/build/scripts/go_tool.py
@@ -83,7 +83,10 @@ def preprocess_args(args):
if f.endswith('.gosrc'):
with tarfile.open(f, 'r') as tar:
srcs.extend(os.path.join(args.output_root, src) for src in tar.getnames())
- tar.extractall(path=args.output_root)
+ if sys.version_info >= (3, 12):
+ tar.extractall(path=args.output_root, filter='data')
+ else:
+ tar.extractall(path=args.output_root)
else:
srcs.append(f)
args.srcs = srcs