diff options
author | v-korovin <v-korovin@yandex-team.ru> | 2022-02-10 16:46:21 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:21 +0300 |
commit | 637de640c39b46c13f29619057a54f4cf3e1241b (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/python | |
parent | c4e0c5d2f245076d63ccff1004c755ca0cc5d27b (diff) | |
download | ydb-637de640c39b46c13f29619057a54f4cf3e1241b.tar.gz |
Restoring authorship annotation for <v-korovin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/python')
-rw-r--r-- | library/python/filelock/ut/py2/ya.make | 2 | ||||
-rw-r--r-- | library/python/fs/clonefile.pyx | 6 | ||||
-rw-r--r-- | library/python/resource/ut/py2/ya.make | 2 | ||||
-rw-r--r-- | library/python/svn_version/ut/py2/ya.make | 2 | ||||
-rw-r--r-- | library/python/symbols/python/ut/py2/ya.make | 2 | ||||
-rw-r--r-- | library/python/testing/yatest_common/yatest/common/path.py | 16 | ||||
-rw-r--r-- | library/python/windows/ut/ya.make | 2 |
7 files changed, 16 insertions, 16 deletions
diff --git a/library/python/filelock/ut/py2/ya.make b/library/python/filelock/ut/py2/ya.make index 1b7539a93a..30b54e0232 100644 --- a/library/python/filelock/ut/py2/ya.make +++ b/library/python/filelock/ut/py2/ya.make @@ -1,6 +1,6 @@ OWNER(g:yatool) -PY2TEST() +PY2TEST() PEERDIR( library/python/filelock/ut/lib diff --git a/library/python/fs/clonefile.pyx b/library/python/fs/clonefile.pyx index fc2551039f..830bb894f2 100644 --- a/library/python/fs/clonefile.pyx +++ b/library/python/fs/clonefile.pyx @@ -1,5 +1,5 @@ -import six - +import six + cdef extern from "sys/clonefile.h" nogil: int clonefile(const char * src, const char * dst, int flags) @@ -15,4 +15,4 @@ cdef int _macos_clone_file(const char* src, const char* dst) except? 0: return 1 def macos_clone_file(src, dst): - return _macos_clone_file(six.ensure_binary(src), six.ensure_binary(dst)) != 0 + return _macos_clone_file(six.ensure_binary(src), six.ensure_binary(dst)) != 0 diff --git a/library/python/resource/ut/py2/ya.make b/library/python/resource/ut/py2/ya.make index 55efe2469a..5085610faf 100644 --- a/library/python/resource/ut/py2/ya.make +++ b/library/python/resource/ut/py2/ya.make @@ -1,4 +1,4 @@ -PY2TEST() +PY2TEST() OWNER(pg) diff --git a/library/python/svn_version/ut/py2/ya.make b/library/python/svn_version/ut/py2/ya.make index fcff0957e2..c860e16536 100644 --- a/library/python/svn_version/ut/py2/ya.make +++ b/library/python/svn_version/ut/py2/ya.make @@ -1,4 +1,4 @@ -PY2TEST() +PY2TEST() OWNER(pg) diff --git a/library/python/symbols/python/ut/py2/ya.make b/library/python/symbols/python/ut/py2/ya.make index df468cbcad..214194de57 100644 --- a/library/python/symbols/python/ut/py2/ya.make +++ b/library/python/symbols/python/ut/py2/ya.make @@ -1,4 +1,4 @@ -PY2TEST() +PY2TEST() OWNER(orivej) diff --git a/library/python/testing/yatest_common/yatest/common/path.py b/library/python/testing/yatest_common/yatest/common/path.py index 361f554200..6fed7dda8a 100644 --- a/library/python/testing/yatest_common/yatest/common/path.py +++ b/library/python/testing/yatest_common/yatest/common/path.py @@ -33,7 +33,7 @@ def change_dir(path): os.chdir(old) -def copytree(src, dst, symlinks=False, ignore=None, postprocessing=None): +def copytree(src, dst, symlinks=False, ignore=None, postprocessing=None): ''' Copy an entire directory of files into an existing directory instead of raising Exception what shtuil.copytree does @@ -47,13 +47,13 @@ def copytree(src, dst, symlinks=False, ignore=None, postprocessing=None): shutil.copytree(s, d, symlinks, ignore) else: shutil.copy2(s, d) - if postprocessing: - postprocessing(dst, False) - for root, dirs, files in os.walk(dst): - for path in dirs: - postprocessing(os.path.join(root, path), False) - for path in files: - postprocessing(os.path.join(root, path), True) + if postprocessing: + postprocessing(dst, False) + for root, dirs, files in os.walk(dst): + for path in dirs: + postprocessing(os.path.join(root, path), False) + for path in files: + postprocessing(os.path.join(root, path), True) def get_unique_file_path(dir_path, file_pattern, create_file=True, max_suffix=10000): diff --git a/library/python/windows/ut/ya.make b/library/python/windows/ut/ya.make index 02c9651c3b..c39f1797b8 100644 --- a/library/python/windows/ut/ya.make +++ b/library/python/windows/ut/ya.make @@ -1,6 +1,6 @@ OWNER(g:yatool) -PY2TEST() +PY2TEST() TEST_SRCS(test_windows.py) |