diff options
author | max42 <max42@yandex-team.ru> | 2022-02-10 16:47:51 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:51 +0300 |
commit | 9988f7c537b40605e1a0aaae2977d5f540425b83 (patch) | |
tree | a4f3497f66e2dcd82d0f7ae7573acd1320d1bc78 /library/python | |
parent | 0a579de32b745908473b2cea7c5cd5540bc801f0 (diff) | |
download | ydb-9988f7c537b40605e1a0aaae2977d5f540425b83.tar.gz |
Restoring authorship annotation for <max42@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/python')
-rw-r--r-- | library/python/svn_version/__svn_version.pyx | 8 | ||||
-rw-r--r-- | library/python/svn_version/ut/lib/test_simple.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/library/python/svn_version/__svn_version.pyx b/library/python/svn_version/__svn_version.pyx index d66bc09d24..6df8e97a57 100644 --- a/library/python/svn_version/__svn_version.pyx +++ b/library/python/svn_version/__svn_version.pyx @@ -5,7 +5,7 @@ cdef extern from "library/cpp/svnversion/svnversion.h": cdef int GetProgramSvnRevision() except +; cdef int GetArcadiaLastChangeNum() except +; cdef const char* GetProgramCommitId() except +; - cdef const char* GetProgramHash() except +; + cdef const char* GetProgramHash() except +; cdef const char* GetBranch() except +; cdef const char* GetTag() except +; cdef int GetArcadiaPatchNumber() except +; @@ -22,9 +22,9 @@ def svn_last_revision(): def commit_id(): return fu.bytes_to_native_str(GetProgramCommitId()) -def hash(): - return fu.bytes_to_native_str(GetProgramHash()) - +def hash(): + return fu.bytes_to_native_str(GetProgramHash()) + def svn_branch(): return fu.bytes_to_native_str(GetBranch()) diff --git a/library/python/svn_version/ut/lib/test_simple.py b/library/python/svn_version/ut/lib/test_simple.py index 2c27af6c68..13304cf2de 100644 --- a/library/python/svn_version/ut/lib/test_simple.py +++ b/library/python/svn_version/ut/lib/test_simple.py @@ -12,5 +12,5 @@ def test_simple(): assert sv.commit_id() assert isinstance(sv.commit_id(), str) assert len(sv.commit_id()) > 0 - assert isinstance(sv.hash(), str) + assert isinstance(sv.hash(), str) assert isinstance(sv.patch_number(), int) |