Skip to content

Commit 00016e0

Browse files
authored
Fix some flake8 errors (PyMySQL#410)
1 parent 82301a3 commit 00016e0

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

MySQLdb/connections.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
override Connection.default_cursor with a non-standard Cursor class.
66
"""
77
import re
8-
import sys
98

10-
from MySQLdb import cursors, _mysql
11-
from MySQLdb._exceptions import (
9+
from . import cursors, _mysql
10+
from ._exceptions import (
1211
Warning, Error, InterfaceError, DataError,
1312
DatabaseError, OperationalError, IntegrityError, InternalError,
1413
NotSupportedError, ProgrammingError,

MySQLdb/cursors.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
This module implements Cursors of various types for MySQLdb. By
44
default, MySQLdb uses the Cursor class.
55
"""
6-
from functools import partial
76
import re
8-
import sys
97

10-
from ._exceptions import (
11-
Warning, Error, InterfaceError, DataError,
12-
DatabaseError, OperationalError, IntegrityError, InternalError,
13-
NotSupportedError, ProgrammingError)
8+
from ._exceptions import ProgrammingError
149

1510

1611
#: Regular expression for :meth:`Cursor.executemany`.

0 commit comments

Comments
 (0)