File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Limitations
22
22
-----------
23
23
24
24
Torndb does not support Python 3, or any database drivers other than
25
- `MySQLdb `.
25
+ `MySQLdb ` or ` pymysql ` .
26
26
27
27
Installation
28
28
------------
Original file line number Diff line number Diff line change 33
33
import MySQLdb .converters
34
34
import MySQLdb .cursors
35
35
except ImportError :
36
- # If MySQLdb isn't available this module won't actually be useable,
37
- # but we want it to at least be importable on readthedocs.org,
38
- # which has limitations on third-party modules.
39
- if 'READTHEDOCS' in os .environ :
40
- MySQLdb = None
41
- else :
42
- raise
36
+ try :
37
+ import pymysql as MySQLdb
38
+ except ImportError :
39
+ # If MySQLdb isn't available this module won't actually be useable,
40
+ # but we want it to at least be importable on readthedocs.org,
41
+ # which has limitations on third-party modules.
42
+ if 'READTHEDOCS' in os .environ :
43
+ MySQLdb = None
44
+ else :
45
+ raise
43
46
44
47
version = "0.3"
45
48
version_info = (0 , 3 , 0 , 0 )
You can’t perform that action at this time.
0 commit comments