Skip to content

Commit

Permalink
Fix name of 'gevent psycopg2'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Oct 25, 2019
1 parent 08259fa commit 755fa19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/relstorage/adapters/drivers.py
Expand Up @@ -84,6 +84,11 @@ class AbstractModuleDriver(ABC):
#: Can this module be used on PyPy?
AVAILABLE_ON_PYPY = True

#: Set this to false if your subclass can do static checks
#: at import time to determine it should not be used.
#: Helpful for things like Python version detection.
STATIC_AVAILABLE = True

#: Priority of this driver, when available. Lower is better.
#: (That is, first choice should have value 1, and second choice value
#: 2, and so on.)
Expand Down Expand Up @@ -123,6 +128,7 @@ def __init__(self):
try:
self.driver_module = mod = self.get_driver_module()
except ImportError:
logger.exception("Unable to import driver")
raise DriverNotAvailableError(self.__name__)


Expand Down
2 changes: 1 addition & 1 deletion src/relstorage/adapters/postgresql/drivers/psycopg2.py
Expand Up @@ -133,7 +133,7 @@ def sync_status_after_commit(self, conn):


class GeventPsycopg2Driver(Psycopg2Driver):
__name__ = 'gevent ' + Psycopg2Driver.__name__
__name__ = 'gevent ' + Psycopg2Driver.MODULE_NAME

_GEVENT_CAPABLE = True
_GEVENT_NEEDS_SOCKET_PATCH = False
Expand Down

0 comments on commit 755fa19

Please sign in to comment.