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

Python 3 fixes

parent d01561fc
......@@ -94,7 +94,7 @@ class RedisCli(BaseView):
doc = (getattr(attr, '__doc__', '') or '').strip()
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]
def _contribute_commands(self):
......
......@@ -17,7 +17,7 @@
{% endif %}
{% elif type == 'str' or type == 'unicode' %}
"{{ item }}"
{% elif type == 'binary' %}
{% elif type == 'bytes' %}
"{{ item.decode('utf-8') }}"
{% elif type == 'TextWrapper' %}
<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