Commit d6d3ca14 authored by Serge S. Koval's avatar Serge S. Koval

Python 3 fixes

parent d01561fc
...@@ -94,7 +94,7 @@ class RedisCli(BaseView): ...@@ -94,7 +94,7 @@ class RedisCli(BaseView):
doc = (getattr(attr, '__doc__', '') or '').strip() doc = (getattr(attr, '__doc__', '') or '').strip()
self.commands[name] = (attr, doc) self.commands[name] = (attr, doc)
for old, new in self.remapped_commands: for new, old in self.remapped_commands.items():
self.commands[new] = self.commands[old] self.commands[new] = self.commands[old]
def _contribute_commands(self): def _contribute_commands(self):
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
{% endif %} {% endif %}
{% elif type == 'str' or type == 'unicode' %} {% elif type == 'str' or type == 'unicode' %}
"{{ item }}" "{{ item }}"
{% elif type == 'binary' %} {% elif type == 'bytes' %}
"{{ item.decode('utf-8') }}" "{{ item.decode('utf-8') }}"
{% elif type == 'TextWrapper' %} {% elif type == 'TextWrapper' %}
<pre>{{ item }}</pre> <pre>{{ item }}</pre>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment