diff options
author | iaz1607 <iaz1607@yandex-team.ru> | 2022-02-10 16:45:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:37 +0300 |
commit | e5437feb4ac2d2dc044e1090b9312dde5ef197e0 (patch) | |
tree | f5a238c69dd20a1fa2092127a31b8aff25020f7d /contrib/tools | |
parent | f4945d0a44b8770f0801de3056aa41639b0b7bd2 (diff) | |
download | ydb-e5437feb4ac2d2dc044e1090b9312dde5ef197e0.tar.gz |
Restoring authorship annotation for <iaz1607@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools')
-rw-r--r-- | contrib/tools/cython/Cython/Coverage.py | 22 | ||||
-rw-r--r-- | contrib/tools/cython/Cython/ya.make | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/contrib/tools/cython/Cython/Coverage.py b/contrib/tools/cython/Cython/Coverage.py index 5aa9df2ce0..3078fc9d47 100644 --- a/contrib/tools/cython/Cython/Coverage.py +++ b/contrib/tools/cython/Cython/Coverage.py @@ -163,8 +163,8 @@ class Plugin(CoveragePlugin): py_source_file = None try: - with OpenFile(c_file) as f: - if '/* Generated by Cython ' not in f.read(30): + with OpenFile(c_file) as f: + if '/* Generated by Cython ' not in f.read(30): return None, None # not a Cython file except (IOError, OSError): c_file = None @@ -181,8 +181,8 @@ class Plugin(CoveragePlugin): broot = os.environ['PYTHON_COVERAGE_CYTHON_BUILD_ROOT'] iter_files = lambda: (os.path.join(root, filename) for root, _, files in os.walk(broot) for filename in files) else: - import library.python.resource - iter_files = library.python.resource.resfs_files + import library.python.resource + iter_files = library.python.resource.resfs_files for c_file in iter_files(): if os.path.splitext(c_file)[1] in C_FILE_EXTENSIONS: self._read_source_lines(c_file, source_file) @@ -409,12 +409,12 @@ class OpenFile(object): self.file = open(os.path.join(self.build_root, self.filename), self.mode) return self.file elif standalone(): - import library.python.resource - from six import StringIO + import library.python.resource + from six import StringIO - content = library.python.resource.resfs_read(self.filename, builtin=True) + content = library.python.resource.resfs_read(self.filename, builtin=True) assert content, (self.filename, os.environ.items()) - return StringIO(content.decode()) + return StringIO(content.decode()) else: self.file = open(self.filename, self.mode) return self.file @@ -449,14 +449,14 @@ if standalone(): else: # Trace stage (test's runtime) def exists(filename): - import library.python.resource - return library.python.resource.resfs_src(filename, resfs_file=True) + import library.python.resource + return library.python.resource.resfs_src(filename, resfs_file=True) if os.environ.get('PYTHON_COVERAGE_CYTHON_INCLUDE_MAP'): if CYTHON_INCLUDE_MAP.get('undef'): with open(os.environ['PYTHON_COVERAGE_CYTHON_INCLUDE_MAP']) as afile: data = json.load(afile) - data = {os.path.splitext(k)[0]: v for k, v in data.items()} + data = {os.path.splitext(k)[0]: v for k, v in data.items()} CYTHON_INCLUDE_MAP.clear() CYTHON_INCLUDE_MAP.update(data) diff --git a/contrib/tools/cython/Cython/ya.make b/contrib/tools/cython/Cython/ya.make index f4aacbdf94..16c2b59c66 100644 --- a/contrib/tools/cython/Cython/ya.make +++ b/contrib/tools/cython/Cython/ya.make @@ -14,7 +14,7 @@ PY_SRCS( PEERDIR( contrib/python/six - library/python/resource + library/python/resource ) END() |