mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
test
This commit is contained in:
parent
0dde277c86
commit
faa35613e2
3 changed files with 9 additions and 3 deletions
|
@ -44,6 +44,8 @@ except NameError:
|
||||||
|
|
||||||
# Attn: these imports should NOT be at the top of the file
|
# Attn: these imports should NOT be at the top of the file
|
||||||
try:
|
try:
|
||||||
|
from epplibwrapper.socket import Socket
|
||||||
|
from epplibwrapper.utility.pool_error import PoolError, PoolErrorCodes
|
||||||
from .client import CLIENT, commands
|
from .client import CLIENT, commands
|
||||||
from .errors import RegistryError, ErrorCode
|
from .errors import RegistryError, ErrorCode
|
||||||
from epplib.models import common, info
|
from epplib.models import common, info
|
||||||
|
@ -61,4 +63,7 @@ __all__ = [
|
||||||
"info",
|
"info",
|
||||||
"ErrorCode",
|
"ErrorCode",
|
||||||
"RegistryError",
|
"RegistryError",
|
||||||
|
"Socket",
|
||||||
|
"PoolError",
|
||||||
|
"PoolErrorCodes"
|
||||||
]
|
]
|
||||||
|
|
|
@ -81,7 +81,8 @@ class EPPLibWrapper:
|
||||||
self.pool_status = PoolStatus()
|
self.pool_status = PoolStatus()
|
||||||
|
|
||||||
if start_connection_pool:
|
if start_connection_pool:
|
||||||
self.start_connection_pool()
|
pass
|
||||||
|
#self.start_connection_pool()
|
||||||
|
|
||||||
def _send(self, command):
|
def _send(self, command):
|
||||||
"""Helper function used by `send`."""
|
"""Helper function used by `send`."""
|
||||||
|
|
|
@ -3,12 +3,12 @@ import gevent
|
||||||
from geventconnpool import ConnectionPool
|
from geventconnpool import ConnectionPool
|
||||||
from epplibwrapper.socket import Socket
|
from epplibwrapper.socket import Socket
|
||||||
from epplibwrapper.utility.pool_error import PoolError, PoolErrorCodes
|
from epplibwrapper.utility.pool_error import PoolError, PoolErrorCodes
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from epplib.commands import Hello
|
from epplib.commands import Hello
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue