diff options
author | laixintao <laixintaoo@gmail.com> | 2020-09-11 09:47:47 +0800 |
---|---|---|
committer | laixintao <laixintaoo@gmail.com> | 2020-09-11 09:47:47 +0800 |
commit | b32874973c9db8eaa15bd9bfb5a7eb4dc3a1b415 (patch) | |
tree | fcdc5472767cdf3da738b0af14a879ad770b042a | |
parent | 545267af7b4bb29d59f74f9c9c52011598636e20 (diff) |
fix lint.feature/slots-range-map
-rw-r--r-- | iredis/client.py | 8 | ||||
-rw-r--r-- | iredis/slot_render.py | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/iredis/client.py b/iredis/client.py index cfa301e..948d0d3 100644 --- a/iredis/client.py +++ b/iredis/client.py @@ -73,7 +73,13 @@ class Client: self.scheme = scheme self.connection = self.create_connection( - host, port, db, password, path, scheme, username, + host, + port, + db, + password, + path, + scheme, + username, ) # all command upper case diff --git a/iredis/slot_render.py b/iredis/slot_render.py index 803f536..70eb2fe 100644 --- a/iredis/slot_render.py +++ b/iredis/slot_render.py @@ -109,13 +109,13 @@ def render_slot_map(redis_cluster_solts_response): ascii_art_pairs.append(("", "\n")) ascii_art_pairs.append(("", f"{index+1:5} ")) ascii_art_pairs.extend(_render_block(slot_in_host[index : index + 8])) - ascii_art_pairs.append(("", f" 16384")) + ascii_art_pairs.append(("", " 16384")) host_color_sample = [] for hostname, color in PLATE.color.items(): host_color_sample.append((f"bg:{color}", " ")) - host_color_sample.append((f"", f" -> {hostname}")) + host_color_sample.append(("", f" -> {hostname}")) host_color_sample.append(("", "\n")) return host_color_sample + ascii_art_pairs |