File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
Original file line number Diff line number Diff line change 5
5
override Connection.default_cursor with a non-standard Cursor class.
6
6
"""
7
7
import re
8
- import sys
9
8
10
- from MySQLdb import cursors , _mysql
11
- from MySQLdb ._exceptions import (
9
+ from . import cursors , _mysql
10
+ from ._exceptions import (
12
11
Warning , Error , InterfaceError , DataError ,
13
12
DatabaseError , OperationalError , IntegrityError , InternalError ,
14
13
NotSupportedError , ProgrammingError ,
Original file line number Diff line number Diff line change 3
3
This module implements Cursors of various types for MySQLdb. By
4
4
default, MySQLdb uses the Cursor class.
5
5
"""
6
- from functools import partial
7
6
import re
8
- import sys
9
7
10
- from ._exceptions import (
11
- Warning , Error , InterfaceError , DataError ,
12
- DatabaseError , OperationalError , IntegrityError , InternalError ,
13
- NotSupportedError , ProgrammingError )
8
+ from ._exceptions import ProgrammingError
14
9
15
10
16
11
#: Regular expression for :meth:`Cursor.executemany`.
You can’t perform that action at this time.
0 commit comments