Sfoglia il codice sorgente

Remove unnecessary list comprehension in `synapse_port_db` to fix linting in CI (#11043)

tags/v1.45.0rc1
reivilibre 2 anni fa
committed by GitHub
parent
commit
4c838112dc
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +1
    -0
      changelog.d/11043.misc
  2. +1
    -1
      scripts/synapse_port_db

+ 1
- 0
changelog.d/11043.misc Vedi File

@@ -0,0 +1 @@
Remove unnecessary list comprehension from `synapse_port_db` to satisfy code style requirements.

+ 1
- 1
scripts/synapse_port_db Vedi File

@@ -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


Caricamento…
Annulla
Salva