From 230983e803b13ca2ba03bb8127778754008bf10b Mon Sep 17 00:00:00 2001 From: "Gavin M. Roy" Date: Fri, 8 Jan 2021 18:19:46 -0500 Subject: [PATCH] Melt a few flake8 flakes --- sprockets_postgres.py | 44 +++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/sprockets_postgres.py b/sprockets_postgres.py index 6a1c6f8..cd8995b 100644 --- a/sprockets_postgres.py +++ b/sprockets_postgres.py @@ -436,7 +436,7 @@ class ApplicationMixin: } def _create_postgres_settings(self) -> dict: - return { + return { 'url': self.settings.get( 'postgres_url', os.environ.get('POSTGRES_URL')), 'max_pool_size': int(self.settings.get( @@ -459,27 +459,27 @@ class ApplicationMixin: os.environ.get( 'POSTGRES_CONNECTION_TTL', DEFAULT_POSTGRES_CONNECTION_TIMEOUT))), - 'enable_hstore': self.settings.get( - 'postgres_hstore', - util.strtobool( - os.environ.get( - 'POSTGRES_HSTORE', DEFAULT_POSTGRES_HSTORE))), - 'enable_json': self.settings.get( - 'postgres_json', - util.strtobool( - os.environ.get( - 'POSTGRES_JSON', DEFAULT_POSTGRES_JSON))), - 'enable_uuid': self.settings.get( - 'postgres_uuid', - util.strtobool( - os.environ.get( - 'POSTGRES_UUID', DEFAULT_POSTGRES_UUID))), - 'query_timeout': int(self.settings.get( - 'postgres_query_timeout', - os.environ.get( - 'POSTGRES_QUERY_TIMEOUT', - DEFAULT_POSTGRES_QUERY_TIMEOUT))), - } + 'enable_hstore': self.settings.get( + 'postgres_hstore', + util.strtobool( + os.environ.get( + 'POSTGRES_HSTORE', DEFAULT_POSTGRES_HSTORE))), + 'enable_json': self.settings.get( + 'postgres_json', + util.strtobool( + os.environ.get( + 'POSTGRES_JSON', DEFAULT_POSTGRES_JSON))), + 'enable_uuid': self.settings.get( + 'postgres_uuid', + util.strtobool( + os.environ.get( + 'POSTGRES_UUID', DEFAULT_POSTGRES_UUID))), + 'query_timeout': int(self.settings.get( + 'postgres_query_timeout', + os.environ.get( + 'POSTGRES_QUERY_TIMEOUT', + DEFAULT_POSTGRES_QUERY_TIMEOUT))) + } async def _postgres_connect(self) -> bool: """Setup the Postgres pool of connections"""