You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/05/14 21:19:45 UTC
[incubator-ponymail-foal] branch master updated: functions might as
well be static
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new df06695 functions might as well be static
df06695 is described below
commit df0669542187ebfb5a2e0d4bb0c7c8d4200cdba1
Author: Sebb <se...@apache.org>
AuthorDate: Fri May 14 22:19:29 2021 +0100
functions might as well be static
---
tools/plugins/elastic.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/plugins/elastic.py b/tools/plugins/elastic.py
index 50cf17c..59b6daa 100755
--- a/tools/plugins/elastic.py
+++ b/tools/plugins/elastic.py
@@ -110,10 +110,12 @@ class Elastic:
# Mimic ES hierarchy: es.indices.xyz()
self.indices = _indices_wrap(self)
- def libraryVersion(self):
+ @staticmethod
+ def libraryVersion():
return ES_VERSION
- def libraryMajor(self):
+ @staticmethod
+ def libraryMajor():
return ES_VERSION[0]
def engineVersion(self):