Skip to content

Commit

Permalink
Fix issue matrix-org#4596
Browse files Browse the repository at this point in the history
Make synapse_port_db --curses work with Python 3.
Signed-off-by: Anders Jensen-Waud <[email protected]>
  • Loading branch information
ajensenwaud committed Apr 3, 2019
1 parent 4c552ed commit 2a59e8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/5003.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix issue #4596 so synapse_port_db script works with --curses option on Python 3. Contributed by Anders Jensen-Waud <[email protected]>.
2 changes: 1 addition & 1 deletion scripts/synapse_port_db
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2a59e8e

Please sign in to comment.