8000 Use relative import (#519) · jasonwangmvp/PyMySQL@6c9d31a · GitHub
[go: up one dir, main page]

Skip to content

Commit 6c9d31a

Browse files
niphlodmethane
authored andcommitted
Use relative import (PyMySQL#519)
To allow (but not officially support) vendoring PyMySQL.
1 parent 40f6a70 commit 6c9d31a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymysql/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def Connect(*args, **kwargs):
8989
from .connections import Connection
9090
return Connection(*args, **kwargs)
9191

92-
from pymysql import connections as _orig_conn
92+
from . import connections as _orig_conn
9393
if _orig_conn.Connection.__init__.__doc__ is not None:
9494
Connect.__doc__ = _orig_conn.Connection.__init__.__doc__
9595
del _orig_conn

0 commit comments

Comments
 (0)
0