From 745f2bbdf9efaf0777a425ae2ff148cdf5f1c5f6 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Thu, 26 Oct 2023 07:51:31 -0600 Subject: [PATCH] Linter --- src/epplibwrapper/utility/pool.py | 2 +- src/epplibwrapper/utility/pool_error.py | 8 ++++---- src/epplibwrapper/utility/pool_status.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/epplibwrapper/utility/pool.py b/src/epplibwrapper/utility/pool.py index 8979c9744..36771252b 100644 --- a/src/epplibwrapper/utility/pool.py +++ b/src/epplibwrapper/utility/pool.py @@ -51,7 +51,7 @@ class EPPConnectionPool(ConnectionPool): self.keepalive = options["keepalive"] # Determines the period in which new - # gevent threads are spun up. + # gevent threads are spun up. # This time period is in seconds. So for instance, .1 would be .1 seconds. self.spawn_frequency = 0.1 if "spawn_frequency" in options: diff --git a/src/epplibwrapper/utility/pool_error.py b/src/epplibwrapper/utility/pool_error.py index 16aa0e08d..821962774 100644 --- a/src/epplibwrapper/utility/pool_error.py +++ b/src/epplibwrapper/utility/pool_error.py @@ -22,19 +22,19 @@ class PoolError(Exception): - 2000 KILL_ALL_FAILED - 2001 NEW_CONNECTION_FAILED - 2002 KEEP_ALIVE_FAILED - + Note: These are separate from the error codes returned from EppLib """ # Used variables due to linter requirements kill_failed = "Could not kill all connections. Are multiple pools running?" conn_failed = ( - "Failed to execute due to a registry error." + "Failed to execute due to a registry error." " See previous logs to determine the cause of the error." ) alive_failed = ( - "Failed to keep the connection alive. " - "It is likely that the registry returned a LoginError." + "Failed to keep the connection alive. " + "It is likely that the registry returned a LoginError." ) _error_mapping = { PoolErrorCodes.KILL_ALL_FAILED: kill_failed, diff --git a/src/epplibwrapper/utility/pool_status.py b/src/epplibwrapper/utility/pool_status.py index 64ebbe5eb..3a0ae750f 100644 --- a/src/epplibwrapper/utility/pool_status.py +++ b/src/epplibwrapper/utility/pool_status.py @@ -1,6 +1,6 @@ class PoolStatus: """A list of Booleans to keep track of Pool Status. - + pool_running -> bool: Tracks if the pool itself is active or not. connection_success -> bool: Tracks if connection is possible with the registry. pool_hanging -> pool: Tracks if the pool has exceeded its timeout period.