Skip to content

Commit 7eac3b1

Browse files
committed
Use """ for docstrings
1 parent 06fb5ed commit 7eac3b1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pymysql/cursors.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121

2222
class Cursor(object):
23-
'''
23+
"""
2424
This is the object you use to interact with the database.
25-
'''
25+
"""
2626

2727
#: Max stetement size which :meth:`executemany` generates.
2828
#:
@@ -33,10 +33,10 @@ class Cursor(object):
3333
_defer_warnings = False
3434

3535
def __init__(self, connection):
36-
'''
36+
"""
3737
Do not create an instance of a Cursor yourself. Call
3838
connections.Connection.cursor().
39-
'''
39+
"""
4040
self.connection = connection
4141
self.description = None
4242
self.rownumber = 0
@@ -48,9 +48,9 @@ def __init__(self, connection):
4848
self._warnings_handled = False
4949

5050
def close(self):
51-
'''
51+
"""
5252
Closing a cursor just exhausts all remaining data.
53-
'''
53+
"""
5454
conn = self.connection
5555
if conn is None:
5656
return
@@ -274,7 +274,7 @@ def callproc(self, procname, args=()):
274274
return args
275275

276276
def fetchone(self):
277-
''' Fetch the next row '''
277+
"""Fetch the next row"""
278278
self._check_executed()
279279
if self._rows is None or self.rownumber >= len(self._rows):
280280
return None
@@ -283,7 +283,7 @@ def fetchone(self):
283283
return result
284284

285285
def fetchmany(self, size=None):
286-
''' Fetch several rows '''
286+
"""Fetch several rows"""
287287
self._check_executed()
288288
if self._rows is None:
289289
return ()
@@ -293,7 +293,7 @@ def fetchmany(self, size=None):
293293
return result
294294

295295
def fetchall(self):
296-
''' Fetch all the rows '''
296+
"""Fetch all the rows"""
297297
self._check_executed()
298298
if self._rows is None:
299299
return ()
@@ -444,11 +444,11 @@ def nextset(self):
444444
return self._nextset(unbuffered=True)
445445

446446
def read_next(self):
447-
""" Read next row """
447+
"""Read next row"""
448448
return self._conv_row(self._result._read_rowdata_packet_unbuffered())
449449

450450
def fetchone(self):
451-
""" Fetch next row """
451+
"""Fetch next row"""
452452
self._check_executed()
453453
row = self.read_next()
454454
if row is None:
@@ -477,7 +477,7 @@ def __iter__(self):
477477
return self.fetchall_unbuffered()
478478

479479
def fetchmany(self, size=None):
480-
""" Fetch many """
480+
"""Fetch many"""
481481
self._check_executed()
482482
if size is None:
483483
size = self.arraysize
@@ -517,4 +517,4 @@ def scroll(self, value, mode='relative'):
517517

518518

519519
class SSDictCursor(DictCursorMixin, SSCursor):
520-
""" An unbuffered cursor, which returns results as a dictionary """
520+
"""An unbuffered cursor, which returns results as a dictionary"""

0 commit comments

Comments
 (0)