Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85a8629

Browse files
committed
#18466: fix more typos. Patch by Févry Thibault.
1 parent b5bc353 commit 85a8629

12 files changed

Lines changed: 12 additions & 12 deletions

File tree

Include/datetime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ typedef struct
4242

4343
typedef struct
4444
{
45-
PyObject_HEAD /* a pure abstract base clase */
45+
PyObject_HEAD /* a pure abstract base class */
4646
} PyDateTime_TZInfo;
4747

4848

Lib/collections/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def namedtuple(typename, field_names, verbose=False, rename=False):
375375
print(result._source)
376376

377377
# For pickling to work, the __module__ variable needs to be set to the frame
378-
# where the named tuple is created. Bypass this step in enviroments where
378+
# where the named tuple is created. Bypass this step in environments where
379379
# sys._getframe is not defined (Jython for example) or sys._getframe is not
380380
# defined for arguments greater than 0 (IronPython).
381381
try:

Lib/test/datetimetester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def test_aware_datetime(self):
250250
t.replace(tzinfo=tz).dst())
251251

252252
#############################################################################
253-
# Base clase for testing a particular aspect of timedelta, time, date and
253+
# Base class for testing a particular aspect of timedelta, time, date and
254254
# datetime comparisons.
255255

256256
class HarmlessMixedComparison:

Lib/test/test_ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def to_tuple(t):
2222

2323

2424
# These tests are compiled through "exec"
25-
# There should be atleast one test per statement
25+
# There should be at least one test per statement
2626
exec_tests = [
2727
# None
2828
"None",

Lib/test/test_http_cookiejar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ class CookieTests(unittest.TestCase):
374374
## commas and equals are commonly appear in the cookie value). This also
375375
## means that if you fold multiple Set-Cookie header fields into one,
376376
## comma-separated list, it'll be a headache to parse (at least my head
377-
## starts hurting everytime I think of that code).
377+
## starts hurting every time I think of that code).
378378
## - Expires: You'll get all sorts of date formats in the expires,
379379
## including emtpy expires attributes ("expires="). Be as flexible as you
380380
## can, and certainly don't expect the weekday to be there; if you can't

Lib/test/test_normalization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_main(self):
5959
c1,c2,c3,c4,c5 = [unistr(x) for x in line.split(';')[:-1]]
6060
except RangeError:
6161
# Skip unsupported characters;
62-
# try atleast adding c1 if we are in part1
62+
# try at least adding c1 if we are in part1
6363
if part == "@Part1":
6464
try:
6565
c1 = unistr(line.split(';')[0])

Lib/test/test_urllib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ def open_spam(self, url):
12181218
# Everywhere else they work ok, but on those machines, sometimes
12191219
# fail in one of the tests, sometimes in other. I have a linux, and
12201220
# the tests go ok.
1221-
# If anybody has one of the problematic enviroments, please help!
1221+
# If anybody has one of the problematic environments, please help!
12221222
# . Facundo
12231223
#
12241224
# def server(evt):

Misc/HISTORY

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2806,7 +2806,7 @@ Library
28062806
- Issue #1285086: Speed up urllib.parse functions: quote, quote_from_bytes,
28072807
unquote, unquote_to_bytes.
28082808

2809-
- Issue #8688: Distutils now recalculates MANIFEST everytime.
2809+
- Issue #8688: Distutils now recalculates MANIFEST every time.
28102810

28112811
- Issue #8477: ssl.RAND_egd() and ssl._test_decode_cert() support str with
28122812
surrogates and bytes for the filename.

Modules/_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ static PyObject *PySSL_SSLshutdown(PySSLSocket *self)
15641564
* Otherwise OpenSSL might read in too much data,
15651565
* eating clear text data that happens to be
15661566
* transmitted after the SSL shutdown.
1567-
* Should be safe to call repeatedly everytime this
1567+
* Should be safe to call repeatedly every time this
15681568
* function is used and the shutdown_seen_zero != 0
15691569
* condition is met.
15701570
*/

Modules/_winapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ getenvironment(PyObject* environment)
489489
Py_UCS4 *buffer = NULL, *p, *end;
490490
PyObject *keys, *values, *res;
491491

492-
/* convert environment dictionary to windows enviroment string */
492+
/* convert environment dictionary to windows environment string */
493493
if (! PyMapping_Check(environment)) {
494494
PyErr_SetString(
495495
PyExc_TypeError, "environment must be dictionary or None");

0 commit comments

Comments
 (0)