[Python-modules-commits] [python-tornado] 03/05: Use pymysql as a drop-in replacement for MySQLdb.

Gianfranco Costamagna locutusofborg at moszumanska.debian.org
Tue May 24 11:00:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

locutusofborg pushed a commit to branch master
in repository python-tornado.

commit 665ea0e820a18f441329cdcf9f104278c32ffd99
Author: Corey Bryant <corey.bryant at canonical.com>
Date:   Tue May 24 12:58:59 2016 +0200

    Use pymysql as a drop-in replacement for MySQLdb.
---
 demos/blog/blog.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/demos/blog/blog.py b/demos/blog/blog.py
index c78e532..14dd699 100755
--- a/demos/blog/blog.py
+++ b/demos/blog/blog.py
@@ -14,6 +14,9 @@
 # License for the specific language governing permissions and limitations
 # under the License.
 
+import pymysql
+pymysql.install_as_MySQLdb()
+
 import bcrypt
 import concurrent.futures
 import MySQLdb

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-tornado.git



More information about the Python-modules-commits mailing list