Skip to content

Commit 6ebc1a1

Browse files
authored
Fix typos (#520)
1 parent 8b92077 commit 6ebc1a1

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

HISTORY.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Release: 2019-08-09
9494

9595
* ``--static`` build supports ``libmariadbclient.a``
9696
* Try ``mariadb_config`` when ``mysql_config`` is not found
97-
* Fixed warning happend in Python 3.8 (#359)
97+
* Fixed warning happened in Python 3.8 (#359)
9898
* Fixed ``from MySQLdb import *``, while I don't recommend it. (#369)
9999
* Fixed SEGV ``MySQLdb.escape_string("1")`` when libmariadb is used and
100100
no connection is created. (#367)
@@ -294,7 +294,7 @@ More tests for date and time columns. (#41)
294294

295295
Fix calling .execute() method for closed cursor cause TypeError. (#37)
296296

297-
Improve peformance to parse date. (#43)
297+
Improve performance to parse date. (#43)
298298

299299
Support geometry types (#49)
300300

MySQLdb/_mysql.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ _mysql_ResultObject_Initialize(
310310
PyObject *fun2=NULL;
311311
int j, n2=PySequence_Size(fun);
312312
// BINARY_FLAG means ***_bin collation is used.
313-
// To distinguish text and binary, we shoud use charsetnr==63 (binary).
313+
// To distinguish text and binary, we should use charsetnr==63 (binary).
314314
// But we abuse BINARY_FLAG for historical reason.
315315
if (fields[i].charsetnr == 63) {
316316
flags |= BINARY_FLAG;

MySQLdb/cursors.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def fetchmany(self, size=None):
375375
return result
376376

377377
def fetchall(self):
378-
"""Fetchs all available rows from the cursor."""
378+
"""Fetches all available rows from the cursor."""
379379
self._check_executed()
380380
if self.rownumber:
381381
result = self._rows[self.rownumber :]
@@ -437,7 +437,7 @@ def fetchmany(self, size=None):
437437
return r
438438

439439
def fetchall(self):
440-
"""Fetchs all available rows from the cursor."""
440+
"""Fetches all available rows from the cursor."""
441441
self._check_executed()
442442
r = self._fetch_row(0)
443443
self.rownumber = self.rownumber + len(r)

doc/user_guide.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ callproc(procname, args)
511511
can only be returned with a SELECT statement. Since a stored
512512
procedure may return zero or more result sets, it is impossible
513513
for MySQLdb to determine if there are result sets to fetch
514-
before the modified parmeters are accessible.
514+
before the modified parameters are accessible.
515515

516516
The parameters are stored in the server as @_*procname*_*n*,
517517
where *n* is the position of the parameter. I.e., if you

tests/dbapi20.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ def test_setoutputsize_basic(self):
793793
con.close()
794794

795795
def test_setoutputsize(self):
796-
# Real test for setoutputsize is driver dependant
796+
# Real test for setoutputsize is driver dependent
797797
raise NotImplementedError("Driver need to override this test")
798798

799799
def test_None(self):

0 commit comments

Comments
 (0)