summaryrefslogtreecommitdiffstats
path: root/iredis/client.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-04 07:59:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-04 07:59:09 +0000
commit51cc817f8e2bab01ee028fbc1a0029a3f314d576 (patch)
tree8a78c6318a6d1b513e41deb0e3b020e59dd55d6c /iredis/client.py
parentReleasing debian version 1.11.1-2. (diff)
downloadiredis-51cc817f8e2bab01ee028fbc1a0029a3f314d576.tar.xz
iredis-51cc817f8e2bab01ee028fbc1a0029a3f314d576.zip
Merging upstream version 1.12.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/client.py')
-rw-r--r--iredis/client.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/iredis/client.py b/iredis/client.py
index 29045da..1b1bf38 100644
--- a/iredis/client.py
+++ b/iredis/client.py
@@ -186,9 +186,7 @@ class Client:
def get_server_info(self):
# safe to decode Redis's INFO response
info_resp = nativestr(self.execute("INFO"))
- version = re.findall(r"^redis_version:([\d\.]+)\r\n", info_resp, re.MULTILINE)[
- 0
- ]
+ version = re.findall(r"redis_version:(.+)\r\n", info_resp)[0]
logger.debug(f"[Redis Version] {version}")
config.version = version