Skip to content

Commit 6507657

Browse files
committed
Issue python#27895: Spelling fixes (Contributed by Ville Skyttä).
1 parent 6eec878 commit 6507657

25 files changed

Lines changed: 34 additions & 34 deletions

Include/pymath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extern int finite(double);
4343
extern double copysign(double, double);
4444
#endif
4545

46-
/* High precision defintion of pi and e (Euler)
46+
/* High precision definition of pi and e (Euler)
4747
* The values are taken from libc6's math.h.
4848
*/
4949
#ifndef Py_MATH_PIl

Lib/distutils/tests/test_msvc9compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def test_reg_class(self):
125125
self.assertRaises(KeyError, Reg.get_value, 'xxx', 'xxx')
126126

127127
# looking for values that should exist on all
128-
# windows registeries versions.
128+
# windows registry versions.
129129
path = r'Control Panel\Desktop'
130130
v = Reg.get_value(path, u'dragfullwindows')
131131
self.assertIn(v, (u'0', u'1', u'2'))

Lib/doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _load_testfile(filename, package, module_relative):
219219
with open(filename, 'U') as f:
220220
return f.read(), filename
221221

222-
# Use sys.stdout encoding for ouput.
222+
# Use sys.stdout encoding for output.
223223
_encoding = getattr(sys.__stdout__, 'encoding', None) or 'utf-8'
224224

225225
def _indent(s, indent=4):

Lib/email/test/test_email.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,12 +561,12 @@ def test_get_content_charset(self):
561561

562562
# Issue 5871: reject an attempt to embed a header inside a header value
563563
# (header injection attack).
564-
def test_embeded_header_via_Header_rejected(self):
564+
def test_embedded_header_via_Header_rejected(self):
565565
msg = Message()
566566
msg['Dummy'] = Header('dummy\nX-Injected-Header: test')
567567
self.assertRaises(Errors.HeaderParseError, msg.as_string)
568568

569-
def test_embeded_header_via_string_rejected(self):
569+
def test_embedded_header_via_string_rejected(self):
570570
msg = Message()
571571
msg['Dummy'] = 'dummy\nX-Injected-Header: test'
572572
self.assertRaises(Errors.HeaderParseError, msg.as_string)

Lib/httplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
#
243243
# VCHAR defined in http://tools.ietf.org/html/rfc5234#appendix-B.1
244244

245-
# the patterns for both name and value are more leniant than RFC
245+
# the patterns for both name and value are more lenient than RFC
246246
# definitions to allow for backwards compatibility
247247
_is_legal_header_name = re.compile(r'\A[^:\s][^:\r\n]*\Z').match
248248
_is_illegal_header_value = re.compile(r'\n(?![ \t])|\r(?![ \t\n])').search

Lib/idlelib/idle_test/test_formatparagraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def test_find_paragraph(self):
159159
class ReformatFunctionTest(unittest.TestCase):
160160
"""Test the reformat_paragraph function without the editor window."""
161161

162-
def test_reformat_paragrah(self):
162+
def test_reformat_paragraph(self):
163163
Equal = self.assertEqual
164164
reform = fp.reformat_paragraph
165165
hw = "O hello world"

Lib/test/test_datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3343,7 +3343,7 @@ def test_bug_1028306(self):
33433343
self.assertRaises(TypeError, lambda: as_date >= as_datetime)
33443344
self.assertRaises(TypeError, lambda: as_datetime >= as_date)
33453345

3346-
# Neverthelss, comparison should work with the base-class (date)
3346+
# Nevertheless, comparison should work with the base-class (date)
33473347
# projection if use of a date method is forced.
33483348
self.assertTrue(as_date.__eq__(as_datetime))
33493349
different_day = (as_date.day + 1) % 20 + 1

Lib/test/test_descr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ class Module(types.ModuleType, str):
684684
self.fail("inheriting from ModuleType and str at the same time "
685685
"should fail")
686686

687-
def test_multiple_inheritence(self):
687+
def test_multiple_inheritance(self):
688688
# Testing multiple inheritance...
689689
class C(object):
690690
def __init__(self):
@@ -815,7 +815,7 @@ class New(Classic):
815815
else:
816816
self.fail("new class with only classic bases - shouldn't be")
817817

818-
def test_diamond_inheritence(self):
818+
def test_diamond_inheritance(self):
819819
# Testing multiple inheritance special cases...
820820
class A(object):
821821
def spam(self): return "A"

Lib/test/test_pep247.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Test suite to check compilance with PEP 247, the standard API
2+
Test suite to check compliance with PEP 247, the standard API
33
for hashing algorithms
44
"""
55

Lib/test/test_py3kwarn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def __eq__(self, other): pass
270270
class NoWarningOnlyHash(object):
271271
def __hash__(self): pass
272272
self.assertEqual(len(w.warnings), 0)
273-
# With an intermediate class in the heirarchy
273+
# With an intermediate class in the hierarchy
274274
class DefinesAllThree(object):
275275
def __cmp__(self, other): pass
276276
def __eq__(self, other): pass

0 commit comments

Comments
 (0)