diff options
author | somov <somov@yandex-team.com> | 2023-11-03 07:38:40 +0300 |
---|---|---|
committer | somov <somov@yandex-team.com> | 2023-11-03 08:05:45 +0300 |
commit | 8063808001b55ba2fc98ab0fe612c3b07723d362 (patch) | |
tree | cb3304f3b589ba530a4abc22fb7e0c14bb111294 /build/plugins/pybuild.py | |
parent | d366e8a8ae0c46aaaabd5cde2bd35fbf8adad525 (diff) | |
download | ydb-8063808001b55ba2fc98ab0fe612c3b07723d362.tar.gz |
Fix after ymake switch to Python3
Diffstat (limited to 'build/plugins/pybuild.py')
-rw-r--r-- | build/plugins/pybuild.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py index 409cf33030..c6a8662742 100644 --- a/build/plugins/pybuild.py +++ b/build/plugins/pybuild.py @@ -307,10 +307,10 @@ def onpy_srcs(unit, *args): dump_dir = unit.get('PYTHON_BUILD_DUMP_DIR') dump_output = None if dump_dir: - import thread + import threading pid = os.getpid() - tid = thread.get_ident() + tid = threading.current_thread().ident dump_name = '{}-{}.dump'.format(pid, tid) dump_output = open(os.path.join(dump_dir, dump_name), 'a') |