diff options
author | Anders <anders@jensenwaud.com> | 2019-04-03 21:59:48 +0000 |
---|---|---|
committer | Anders <anders@jensenwaud.com> | 2019-04-03 21:59:48 +0000 |
commit | 2a59e8e4297d264d375378dce2cb738b1f085a6f (patch) | |
tree | e50b761f7f91e5813b433aa02d6b0e938581a575 /scripts/synapse_port_db | |
parent | Neilj/fix threepid auth check (with tests) (#4474) (diff) | |
download | synapse-2a59e8e4297d264d375378dce2cb738b1f085a6f.tar.xz |
Fix issue #4596
Make synapse_port_db --curses work with Python 3. Signed-off-by: Anders Jensen-Waud <anders@jensenwaud.com>
Diffstat (limited to 'scripts/synapse_port_db')
-rwxr-xr-x | scripts/synapse_port_db | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/synapse_port_db b/scripts/synapse_port_db index 2fa01d1a18..3de394b035 100755 --- a/scripts/synapse_port_db +++ b/scripts/synapse_port_db @@ -811,7 +811,7 @@ class CursesProgress(Progress): middle_space = 1 items = self.tables.items() - items.sort(key=lambda i: (i[1]["perc"], i[0])) + items = sorted(items, key=lambda i: (i[1]["perc"], i[0])) for i, (table, data) in enumerate(items): if i + 2 >= rows: |