make pymysql usable inside web2py

This commit is contained in:
niphlod
2016-10-01 00:15:47 +02:00
parent 590a505c54
commit 9539cc7542
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
"from gluon.storage import Storage"
- tests can only be run with the usual web2py.py --run_system_tests OR with
python -m unittest -v gluon.tests on the root dir
- updated pymysql driver
## 2.14.6

View File

@@ -89,7 +89,7 @@ def Connect(*args, **kwargs):
from .connections import Connection
return Connection(*args, **kwargs)
from pymysql import connections as _orig_conn
from . import connections as _orig_conn
if _orig_conn.Connection.__init__.__doc__ is not None:
Connect.__doc__ = _orig_conn.Connection.__init__.__doc__
del _orig_conn