mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-28 01:27:11 -04:00
Fix new flake8 errors (#7489)
This is a cherry-pick of 1a1da60ad2
(#7470)
to the release-v1.13.0 branch.
This commit is contained in:
parent
fa4af2c3af
commit
edd3b0747c
7 changed files with 19 additions and 12 deletions
|
@ -522,7 +522,7 @@ class ServerConfig(Config):
|
|||
)
|
||||
|
||||
def has_tls_listener(self) -> bool:
|
||||
return any(l["tls"] for l in self.listeners)
|
||||
return any(listener["tls"] for listener in self.listeners)
|
||||
|
||||
def generate_config_section(
|
||||
self, server_name, data_dir_path, open_private_ports, listeners, **kwargs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue