Stop checking for pre-0.7 SQLAlchemy

This commit is contained in:
Lance Edgar 2017-07-19 03:15:10 -05:00
parent d3bc1abb57
commit c82c55942f

View file

@ -124,11 +124,6 @@ def register(session, initial_state=datamanager.STATUS_ACTIVE,
This function is copied from upstream, and tweaked so that our custom This function is copied from upstream, and tweaked so that our custom
:class:`ZopeTransactionExtension` will be used. :class:`ZopeTransactionExtension` will be used.
""" """
from sqlalchemy import __version__
assert tuple(int(x) for x in __version__.split(".")) >= (0, 7), \
"SQLAlchemy version 0.7 or greater required to use register()"
from sqlalchemy import event from sqlalchemy import event
ext = ZopeTransactionExtension( ext = ZopeTransactionExtension(