From 38a7b171808c5a1525da5452b338fac0a9bf2c6b Mon Sep 17 00:00:00 2001 From: genofire Date: Wed, 10 Jun 2020 07:22:42 +0200 Subject: add cleanup.py --- api.py | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'api.py') diff --git a/api.py b/api.py index a83bae7..ab25f0a 100644 --- a/api.py +++ b/api.py @@ -29,25 +29,6 @@ class EjabberdApi: return f"{self._login['user']}@{self._login['server']}", self._login['password'] return None - @property - def verstring(self): - if self._login is not None: - ver_str = re.compile('([1-9][0-9.]+(?![.a-z]))\\b') - status = self.cmd('status', {}) - - # matches - try: - tmp = ver_str.findall(status)[0] - # raise SystemExit code 17 if no status message is received - except TypeError: - raise SystemExit(17) - - # return parsed version string - logging.debug(f"fetch version: {tmp}") - return version.parse(tmp) - - return None - def _rest(self, command: str, data) -> dict: # add authentication header to the session obj if self.session.auth is None: -- cgit v1.2.3-18-g5258