Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 00016e0

Browse filesBrowse files
authored
Fix some flake8 errors (PyMySQL#410)
1 parent 82301a3 commit 00016e0
Copy full SHA for 00016e0

File tree

Expand file treeCollapse file tree

2 files changed

+3
-9
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-9
lines changed

‎MySQLdb/connections.py

Copy file name to clipboardExpand all lines: MySQLdb/connections.py
+2-3Lines 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

Copy file name to clipboardExpand all lines: MySQLdb/cursors.py
+1-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.