Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary list comprehension in synapse_port_db to fix lin…
Browse files Browse the repository at this point in the history
…ting in CI (#11043)
  • Loading branch information
reivilibre authored Oct 11, 2021
1 parent b742cb2 commit 4c83811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/11043.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove unnecessary list comprehension from `synapse_port_db` to satisfy code style requirements.
2 changes: 1 addition & 1 deletion scripts/synapse_port_db
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ class CursesProgress(Progress):

self.stdscr.addstr(0, 0, status, curses.A_BOLD)

max_len = max([len(t) for t in self.tables.keys()])
max_len = max(len(t) for t in self.tables.keys())

left_margin = 5
middle_space = 1
Expand Down

0 comments on commit 4c83811

Please sign in to comment.