diff options
author | snermolaev <snermolaev@yandex-team.com> | 2023-10-21 04:38:17 +0300 |
---|---|---|
committer | snermolaev <snermolaev@yandex-team.com> | 2023-10-21 05:46:55 +0300 |
commit | c54401c23da1403dff8184f139a342ad669df08d (patch) | |
tree | 31c7c44a961b8e9ec3566f1bbf53ae5d5d72ed47 /build/plugins | |
parent | c4974538026c65bcca02a9b391e32231569d2dd2 (diff) | |
download | ydb-c54401c23da1403dff8184f139a342ad669df08d.tar.gz |
py23 pybuild: fix for python coverage
Diffstat (limited to 'build/plugins')
-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 e684a11725..409cf33030 100644 --- a/build/plugins/pybuild.py +++ b/build/plugins/pybuild.py @@ -96,7 +96,7 @@ def parse_pyx_includes(filename, path, source_root, seen=None): with open(abs_path, 'rb') as f: # Don't parse cimports and etc - irrelevant for cython, it's linker work - includes = ymake.parse_cython_includes(f.read()) + includes = [six.ensure_str(x) for x in ymake.parse_cython_includes(f.read())] abs_dirname = os.path.dirname(abs_path) # All includes are relative to the file which include @@ -519,7 +519,7 @@ def onpy_srcs(unit, *args): prefix = 'resfs/cython/include' for line in sorted( '{}/{}={}'.format(prefix, filename, ':'.join(sorted(files))) - for filename, files in include_map.iteritems() + for filename, files in six.iteritems(include_map) ): data += ['-', line] unit.onresource(data) |