Fix new flake8 errors (#7470)

This commit is contained in:
Erik Johnston 2020-05-12 11:20:48 +01:00 committed by GitHub
parent 8c8858e124
commit 1a1da60ad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 19 additions and 12 deletions

View file

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