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 bd62c5d

Browse filesBrowse files
committed
cursor: Remove deprecated methods and classes
1 parent 67903f7 commit bd62c5d
Copy full SHA for bd62c5d

File tree

Expand file treeCollapse file tree

1 file changed

+0
-34
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-34
lines changed

‎MySQLdb/cursors.py

Copy file name to clipboardExpand all lines: MySQLdb/cursors.py
-34Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -534,38 +534,6 @@ class CursorDictRowsMixIn(object):
534534

535535
_fetch_type = 1
536536

537-
def fetchoneDict(self):
538-
"""Fetch a single row as a dictionary. Deprecated:
539-
Use fetchone() instead. Will be removed in 1.3."""
540-
from warnings import warn
541-
warn("fetchoneDict() is non-standard and will be removed in 1.3",
542-
DeprecationWarning, 2)
543-
return self.fetchone()
544-
545-
def fetchmanyDict(self, size=None):
546-
"""Fetch several rows as a list of dictionaries. Deprecated:
547-
Use fetchmany() instead. Will be removed in 1.3."""
548-
from warnings import warn
549-
warn("fetchmanyDict() is non-standard and will be removed in 1.3",
550-
DeprecationWarning, 2)
551-
return self.fetchmany(size)
552-
553-
def fetchallDict(self):
554-
"""Fetch all available rows as a list of dictionaries. Deprecated:
555-
Use fetchall() instead. Will be removed in 1.3."""
556-
from warnings import warn
557-
warn("fetchallDict() is non-standard and will be removed in 1.3",
558-
DeprecationWarning, 2)
559-
return self.fetchall()
560-
561-
562-
class CursorOldDictRowsMixIn(CursorDictRowsMixIn):
563-
"""This is a MixIn class that returns rows as dictionaries with
564-
the same key convention as the old Mysqldb (MySQLmodule). Don't
565-
use this."""
566-
567-
_fetch_type = 2
568-
569537

570538
class Cursor(CursorStoreResultMixIn, CursorTupleRowsMixIn,
571539
BaseCursor):
@@ -589,5 +557,3 @@ class SSDictCursor(CursorUseResultMixIn, CursorDictRowsMixIn,
589557
BaseCursor):
590558
"""This is a Cursor class that returns rows as dictionaries and
591559
stores the result set in the server."""
592-
593-

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.