diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-03-11 05:59:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-03-11 05:59:22 +0000 |
commit | 770359ab1b5d6d8421ee93ca9fdc7d044e0a1c78 (patch) | |
tree | cef8737b15ced6cfadaa45b0d758a3c0cf764da1 /iredis/renders.py | |
parent | Releasing progress-linux version 1.11.0-1. (diff) | |
download | iredis-770359ab1b5d6d8421ee93ca9fdc7d044e0a1c78.tar.xz iredis-770359ab1b5d6d8421ee93ca9fdc7d044e0a1c78.zip |
Merging upstream version 1.11.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/renders.py')
-rw-r--r-- | iredis/renders.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iredis/renders.py b/iredis/renders.py index 2bb21c9..6791c19 100644 --- a/iredis/renders.py +++ b/iredis/renders.py @@ -6,7 +6,7 @@ func(redis-response) -> formatted result(str) """ import logging import time -from distutils.version import StrictVersion +from packaging.version import parse as version_parse from prompt_toolkit.formatted_text import FormattedText @@ -260,7 +260,7 @@ class OutputRender: @staticmethod def render_slowlog(raw): fields = ["Slow log id", "Start at", "Running time(ms)", "Command"] - if StrictVersion(config.version) > StrictVersion("4.0"): + if version_parse(config.version) > version_parse("4.0"): fields.extend(["Client IP and port", "Client name"]) rendered = [] |