mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 02:49:21 +02:00
Run black linter
This commit is contained in:
parent
3a28a3a362
commit
542554959e
3 changed files with 14 additions and 8 deletions
|
@ -65,11 +65,16 @@ class EPPLibWrapper:
|
||||||
# Pool size
|
# Pool size
|
||||||
"size": settings.EPP_CONNECTION_POOL_SIZE,
|
"size": settings.EPP_CONNECTION_POOL_SIZE,
|
||||||
# Which errors the pool should look out for
|
# Which errors the pool should look out for
|
||||||
"exc_classes": (LoginError, RegistryError,),
|
"exc_classes": (
|
||||||
|
LoginError,
|
||||||
|
RegistryError,
|
||||||
|
),
|
||||||
# Occasionally pings the registry to keep the connection alive
|
# Occasionally pings the registry to keep the connection alive
|
||||||
"keepalive": settings.POOL_KEEP_ALIVE,
|
"keepalive": settings.POOL_KEEP_ALIVE,
|
||||||
}
|
}
|
||||||
self._pool = EppConnectionPool(client=self._client, login=self._login, options=options)
|
self._pool = EppConnectionPool(
|
||||||
|
client=self._client, login=self._login, options=options
|
||||||
|
)
|
||||||
|
|
||||||
def _send(self, command):
|
def _send(self, command):
|
||||||
"""Helper function used by `send`."""
|
"""Helper function used by `send`."""
|
||||||
|
|
|
@ -10,6 +10,7 @@ except ImportError:
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class EppConnectionPool(ConnectionPool):
|
class EppConnectionPool(ConnectionPool):
|
||||||
def __init__(self, client, login, options):
|
def __init__(self, client, login, options):
|
||||||
# For storing shared credentials
|
# For storing shared credentials
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue