lint: remove unnecessary pass statements (#2541)

Signed-off-by: Vilhelm Prytz <vilhelm@prytznet.se>
This commit is contained in:
Vilhelm Prytz 2022-07-27 21:31:04 +02:00 committed by GitHub
parent adf5a97b12
commit ea4cefe4fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -383,7 +383,6 @@ def _load_legacy_config(config_file):
}}
except Exception as e:
log.debug(e)
pass
log.debug("All parsing attempts failed - returning empty config")
return {}

View File

@ -61,7 +61,7 @@ class NpipeHTTPConnectionPool(urllib3.connectionpool.HTTPConnectionPool):
"Pool reached maximum size and no more "
"connections are allowed."
)
pass # Oh well, we'll create a new connection then
# Oh well, we'll create a new connection then
return conn or self._new_conn()

View File

@ -155,7 +155,7 @@ class SSHConnectionPool(urllib3.connectionpool.HTTPConnectionPool):
"Pool reached maximum size and no more "
"connections are allowed."
)
pass # Oh well, we'll create a new connection then
# Oh well, we'll create a new connection then
return conn or self._new_conn()