summaryrefslogtreecommitdiffstats
path: root/iredis/renders.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-25 20:03:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-25 20:04:46 +0000
commit668977aa6a04dbdfb1c4856dbf8577800505873e (patch)
tree79658cc59958112ece04da15d09433c7d779eff2 /iredis/renders.py
parentReleasing debian version 1.10.0-1. (diff)
downloadiredis-668977aa6a04dbdfb1c4856dbf8577800505873e.tar.xz
iredis-668977aa6a04dbdfb1c4856dbf8577800505873e.zip
Merging upstream version 1.11.0:
- compatible with mistune 2.0 (Closes: #1003572). Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/renders.py')
-rw-r--r--iredis/renders.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/iredis/renders.py b/iredis/renders.py
index 2898c42..2bb21c9 100644
--- a/iredis/renders.py
+++ b/iredis/renders.py
@@ -74,8 +74,8 @@ class OutputRender:
utf-8 decoded.
"""
decoded = nativestr(value)
- splitted = "\n".join(decoded.splitlines()) # get rid of last newline
- return splitted
+ split = "\n".join(decoded.splitlines()) # get rid of last newline
+ return split
@staticmethod
def render_nested_pair(value):
@@ -163,7 +163,7 @@ class OutputRender:
def render_simple_string(text):
"""
If response is b'OK', render simple string always with success color.
- If Error happend, error will be rendered by ``render_error``
+ If Error happens, error will be rendered by ``render_error``
"""
if text is None:
return NIL
@@ -174,7 +174,7 @@ class OutputRender:
def render_help(raw):
"""
render help text message.
- the comand like ``ACL HELP`` and ``MEMORY HELP``
+ the command like ``ACL HELP`` and ``MEMORY HELP``
will return a list of strings.
we render it as plain text
"""