Skip to content

Commit ecf0de2

Browse files
committed
#18803: fix more typos. Patch by Févry Thibault.
1 parent f6e6a71 commit ecf0de2

14 files changed

Lines changed: 17 additions & 17 deletions

File tree

Mac/BuildScript/build-installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def getFullVersion():
108108
### There are some issues with the SDK selection below here,
109109
### The resulting binary doesn't work on all platforms that
110110
### it should. Always default to the 10.4u SDK until that
111-
### isue is resolved.
111+
### issue is resolved.
112112
###
113113
##if int(os.uname()[2].split('.')[0]) == 8:
114114
## # Explicitly use the 10.4u (universal) SDK when
@@ -1015,7 +1015,7 @@ def buildPython():
10151015
os.chdir(curdir)
10161016

10171017
if PYTHON_3:
1018-
# Remove the 'Current' link, that way we don't accidently mess
1018+
# Remove the 'Current' link, that way we don't accidentally mess
10191019
# with an already installed version of python 2
10201020
os.unlink(os.path.join(rootDir, 'Library', 'Frameworks',
10211021
'Python.framework', 'Versions', 'Current'))

Modules/unicodedata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ nfd_nfkd(PyObject *self, PyObject *input, int k)
506506

507507
stackptr = 0;
508508
isize = PyUnicode_GET_SIZE(input);
509-
/* Overallocate atmost 10 characters. */
509+
/* Overallocate at most 10 characters. */
510510
space = (isize > 10 ? 10 : isize) + isize;
511511
result = PyUnicode_FromUnicode(NULL, space);
512512
if (!result)

Parser/asdl_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ def has_sequence(types, doing_specialization):
977977

978978

979979
class StaticVisitor(PickleVisitor):
980-
CODE = '''Very simple, always emit this static code. Overide CODE'''
980+
CODE = '''Very simple, always emit this static code. Override CODE'''
981981

982982
def visit(self, object):
983983
self.emit(self.CODE, 0, reflow=False)

Tools/freeze/checkextensions_win32.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Under Windows it is unlikely the .obj files are of use, as special compiler options
44
are needed (primarily to toggle the behavior of "public" symbols.
55
6-
I dont consider it worth parsing the MSVC makefiles for compiler options. Even if
6+
I don't consider it worth parsing the MSVC makefiles for compiler options. Even if
77
we get it just right, a specific freeze application may have specific compiler
88
options anyway (eg, to enable or disable specific functionality)
99
@@ -14,7 +14,7 @@
1414
your own).
1515
* This description can include:
1616
- The MSVC .dsp file for the extension. The .c source file names
17-
are extraced from there.
17+
are extracted from there.
1818
- Specific compiler/linker options
1919
- Flag to indicate if Unicode compilation is expected.
2020

Tools/freeze/makefreeze.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def makefreeze(base, dict, debug=0, entry_point=None, fail_import=()):
6262
outfp.write('\t{"%s", M_%s, %d},\n' % (mod, mangled, size))
6363
outfp.write('\n')
6464
# The following modules have a NULL code pointer, indicating
65-
# that the prozen program should not search for them on the host
65+
# that the frozen program should not search for them on the host
6666
# system. Importing them will *always* raise an ImportError.
6767
# The zero value size is never used.
6868
for mod in fail_import:

Tools/gdb/libpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ class PyDictObjectPtr(PyObjectPtr):
617617
def iteritems(self):
618618
'''
619619
Yields a sequence of (PyObjectPtr key, PyObjectPtr value) pairs,
620-
analagous to dict.iteritems()
620+
analogous to dict.iteritems()
621621
'''
622622
for i in safe_range(self.field('ma_mask') + 1):
623623
ep = self.field('ma_table') + i

Tools/i18n/msgfmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def make(filename, outfile):
144144
# This is a message with plural forms
145145
elif l.startswith('msgid_plural'):
146146
if section != ID:
147-
print >> sys.stderr, 'msgid_plural not preceeded by msgid on %s:%d' %\
147+
print >> sys.stderr, 'msgid_plural not preceded by msgid on %s:%d' %\
148148
(infile, lno)
149149
sys.exit(1)
150150
l = l[12:]

Tools/msi/msilib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def init_database(name, schema,
305305
t.create(db)
306306
# Fill the validation table
307307
add_data(db, "_Validation", schema._Validation_records)
308-
# Initialize the summary information, allowing atmost 20 properties
308+
# Initialize the summary information, allowing at most 20 properties
309309
si = db.GetSummaryInformation(20)
310310
si.SetProperty(PID_TITLE, "Installation Database")
311311
si.SetProperty(PID_SUBJECT, ProductName)

Tools/pybench/CommandLine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def parse(self):
458458
handler = getattr(self, handlername)
459459
except AttributeError:
460460
if value == '':
461-
# count the number of occurances
461+
# count the number of occurrences
462462
if values.has_key(optionname):
463463
values[optionname] = values[optionname] + 1
464464
else:

Tools/pybench/systimes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This module implements various different strategies for measuring
77
performance timings. It tries to choose the best available method
8-
based on the platforma and available tools.
8+
based on the platform and available tools.
99
1010
On Windows, it is recommended to have the Mark Hammond win32
1111
package installed. Alternatively, the Thomas Heller ctypes

0 commit comments

Comments
 (0)