Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use event.listen() instead of deprecated listeners kwarg
The listeners kwarg is deprecated in SQLAlchemy 0.7.0. Use the new event.listen() method instead. Instead of using the original approach of testing whether or not the string 'mysql' is in 'connection_dict.drivername', now we are using a more direct string equality test to ensure that engine.name == 'mysql' before passing it to sql.event.listen(). We've decided to change the name of our ping_listener function to reflect its purpose more accurately. Its name has been changed from "ping_listener" to "mysql_on_checkout". Change-Id: Ib9ef52404e3d474a60cdc82e8fcf8c6a9616bce3 Fixes: bug #1031405
- Loading branch information