Skip to content

Commit db1bb2c

Browse files
scopmethane
authored andcommitted
Spelling fixes (#112)
1 parent 2617620 commit db1bb2c

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

MySQLdb/cursors.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
#: Regular expression for :meth:`Cursor.executemany`.
26-
#: executemany only suports simple bulk insert.
26+
#: executemany only supports simple bulk insert.
2727
#: You can use it to load large dataset.
2828
RE_INSERT_VALUES = re.compile(
2929
r"\s*((?:INSERT|REPLACE)\s.+\sVALUES?\s+)" +
@@ -475,7 +475,7 @@ class CursorUseResultMixIn(object):
475475
"""This is a MixIn class which causes the result set to be stored
476476
in the server and sent row-by-row to client side, i.e. it uses
477477
mysql_use_result(). You MUST retrieve the entire result set and
478-
close() the cursor before additional queries can be peformed on
478+
close() the cursor before additional queries can be performed on
479479
the connection."""
480480

481481
_defer_warnings = True

_mysql.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2508,7 +2508,7 @@ static struct PyMemberDef _mysql_ConnectionObject_memberlist[] = {
25082508
T_UINT,
25092509
offsetof(_mysql_ConnectionObject,connection.server_capabilities),
25102510
READONLY,
2511-
"Capabilites of server; consult MySQLdb.constants.CLIENT"
2511+
"Capabilities of server; consult MySQLdb.constants.CLIENT"
25122512
},
25132513
{
25142514
"port",

doc/FAQ.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ threadsafe = False.
2020

2121
This almost always mean you don't have development packages
2222
installed. On some systems, C headers for various things (like MySQL)
23-
are distributed as a seperate package. You'll need to figure out
23+
are distributed as a separate package. You'll need to figure out
2424
what that is and install it, but often the name ends with -devel.
2525

2626
Another possibility: Some older versions of mysql_config behave oddly

doc/user_guide.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ conv
441441
is a function as above. The sequence is tested until the flags
442442
on the field match those of the first value. If both values
443443
are None, then the default conversion is done. Presently this
444-
is only used to distinquish TEXT and BLOB columns.
444+
is only used to distinguish TEXT and BLOB columns.
445445

446446
If the key is a Python type or class, then the value is a
447447
callable Python object (usually a function) taking two arguments
@@ -615,7 +615,7 @@ Using and extending
615615
-------------------
616616

617617
In general, it is probably wise to not directly interact with the DB
618-
API except for small applicatons. Databases, even SQL databases, vary
618+
API except for small applications. Databases, even SQL databases, vary
619619
widely in capabilities and may have non-standard features. The DB API
620620
does a good job of providing a reasonably portable interface but some
621621
methods are non-portable. Specifically, the parameters accepted by

tests/dbapi20.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
# - Now a subclass of TestCase, to avoid requiring the driver stub
5353
# to use multiple inheritance
5454
# - Reversed the polarity of buggy test in test_description
55-
# - Test exception heirarchy correctly
55+
# - Test exception hierarchy correctly
5656
# - self.populate is now self._populate(), so if a driver stub
57-
# overrides self.ddl1 this change propogates
57+
# overrides self.ddl1 this change propagates
5858
# - VARCHAR columns now have a width, which will hopefully make the
5959
# DDL even more portible (this will be reversed if it causes more problems)
6060
# - cursor.rowcount being checked after various execute and fetchXXX methods
@@ -176,7 +176,7 @@ def test_paramstyle(self):
176176

177177
def test_Exceptions(self):
178178
# Make sure required exceptions exist, and are in the
179-
# defined heirarchy.
179+
# defined hierarchy.
180180
self.assertTrue(issubclass(self.driver.Warning,Exception))
181181
self.assertTrue(issubclass(self.driver.Error,Exception))
182182
self.assertTrue(
@@ -485,7 +485,7 @@ def test_fetchone(self):
485485
self.assertRaises(self.driver.Error,cur.fetchone)
486486

487487
# cursor.fetchone should raise an Error if called after
488-
# executing a query that cannnot return rows
488+
# executing a query that cannot return rows
489489
self.executeDDL1(cur)
490490
self.assertRaises(self.driver.Error,cur.fetchone)
491491

@@ -497,7 +497,7 @@ def test_fetchone(self):
497497
self.assertTrue(cur.rowcount in (-1,0))
498498

499499
# cursor.fetchone should raise an Error if called after
500-
# executing a query that cannnot return rows
500+
# executing a query that cannot return rows
501501
cur.execute("insert into %sbooze values ('Victoria Bitter')" % (
502502
self.table_prefix
503503
))

tests/test_MySQLdb_dbapi20.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_fetchone(self):
8080
self.assertRaises(self.driver.Error,cur.fetchone)
8181

8282
# cursor.fetchone should raise an Error if called after
83-
# executing a query that cannnot return rows
83+
# executing a query that cannot return rows
8484
self.executeDDL1(cur)
8585
## self.assertRaises(self.driver.Error,cur.fetchone)
8686

@@ -92,7 +92,7 @@ def test_fetchone(self):
9292
self.assertTrue(cur.rowcount in (-1,0))
9393

9494
# cursor.fetchone should raise an Error if called after
95-
# executing a query that cannnot return rows
95+
# executing a query that cannot return rows
9696
cur.execute("insert into %sbooze values ('Victoria Bitter')" % (
9797
self.table_prefix
9898
))

0 commit comments

Comments
 (0)