aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/svn_version
diff options
context:
space:
mode:
authordvshkurko <dvshkurko@yandex-team.ru>2022-02-10 16:45:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:52 +0300
commitc768a99151e47c3a4bb7b92c514d256abd301c4d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/python/svn_version
parent321ee9bce31ec6e238be26dbcbe539cffa2c3309 (diff)
downloadydb-c768a99151e47c3a4bb7b92c514d256abd301c4d.tar.gz
Restoring authorship annotation for <dvshkurko@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/python/svn_version')
-rw-r--r--library/python/svn_version/__init__.py2
-rw-r--r--library/python/svn_version/__svn_version.pyx24
-rw-r--r--library/python/svn_version/ut/lib/test_simple.py14
3 files changed, 20 insertions, 20 deletions
diff --git a/library/python/svn_version/__init__.py b/library/python/svn_version/__init__.py
index d2a6dc1a49..7ef7d6dac7 100644
--- a/library/python/svn_version/__init__.py
+++ b/library/python/svn_version/__init__.py
@@ -1 +1 @@
-from .__svn_version import svn_version, commit_id, svn_revision, svn_last_revision, hash, svn_branch, svn_tag, patch_number # noqa
+from .__svn_version import svn_version, commit_id, svn_revision, svn_last_revision, hash, svn_branch, svn_tag, patch_number # noqa
diff --git a/library/python/svn_version/__svn_version.pyx b/library/python/svn_version/__svn_version.pyx
index 4be75f808d..d66bc09d24 100644
--- a/library/python/svn_version/__svn_version.pyx
+++ b/library/python/svn_version/__svn_version.pyx
@@ -3,12 +3,12 @@ import future.utils as fu
cdef extern from "library/cpp/svnversion/svnversion.h":
cdef const char* GetProgramSvnVersion() except +;
cdef int GetProgramSvnRevision() except +;
- cdef int GetArcadiaLastChangeNum() except +;
- cdef const char* GetProgramCommitId() except +;
+ cdef int GetArcadiaLastChangeNum() except +;
+ cdef const char* GetProgramCommitId() except +;
cdef const char* GetProgramHash() except +;
cdef const char* GetBranch() except +;
cdef const char* GetTag() except +;
- cdef int GetArcadiaPatchNumber() except +;
+ cdef int GetArcadiaPatchNumber() except +;
def svn_version():
return fu.bytes_to_native_str(GetProgramSvnVersion())
@@ -16,12 +16,12 @@ def svn_version():
def svn_revision():
return GetProgramSvnRevision()
-def svn_last_revision():
- return GetArcadiaLastChangeNum()
-
-def commit_id():
- return fu.bytes_to_native_str(GetProgramCommitId())
-
+def svn_last_revision():
+ return GetArcadiaLastChangeNum()
+
+def commit_id():
+ return fu.bytes_to_native_str(GetProgramCommitId())
+
def hash():
return fu.bytes_to_native_str(GetProgramHash())
@@ -30,6 +30,6 @@ def svn_branch():
def svn_tag():
return fu.bytes_to_native_str(GetTag())
-
-def patch_number():
- return GetArcadiaPatchNumber()
+
+def patch_number():
+ return GetArcadiaPatchNumber()
diff --git a/library/python/svn_version/ut/lib/test_simple.py b/library/python/svn_version/ut/lib/test_simple.py
index c1218895c1..2c27af6c68 100644
--- a/library/python/svn_version/ut/lib/test_simple.py
+++ b/library/python/svn_version/ut/lib/test_simple.py
@@ -6,11 +6,11 @@ def test_simple():
assert isinstance(sv.svn_version(), str)
assert sv.svn_revision()
assert isinstance(sv.svn_revision(), int)
- assert sv.svn_last_revision()
- assert isinstance(sv.svn_last_revision(), int)
- assert sv.svn_last_revision() > 0
- assert sv.commit_id()
- assert isinstance(sv.commit_id(), str)
- assert len(sv.commit_id()) > 0
+ assert sv.svn_last_revision()
+ assert isinstance(sv.svn_last_revision(), int)
+ assert sv.svn_last_revision() > 0
+ assert sv.commit_id()
+ assert isinstance(sv.commit_id(), str)
+ assert len(sv.commit_id()) > 0
assert isinstance(sv.hash(), str)
- assert isinstance(sv.patch_number(), int)
+ assert isinstance(sv.patch_number(), int)