Skip to content

Commit d640fe2

Browse files
committed
python#18803: merge with 3.3.
2 parents c020e7f + 7c4a7e6 commit d640fe2

File tree

17 files changed

+20
-20
lines changed

17 files changed

+20
-20
lines changed

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
@@ -1055,7 +1055,7 @@ def buildPython():
10551055
os.chdir(curdir)
10561056

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

Modules/unicodedata.c

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

508508
stackptr = 0;
509509
isize = PyUnicode_GET_LENGTH(input);
510-
/* Overallocate atmost 10 characters. */
510+
/* Overallocate at most 10 characters. */
511511
space = (isize > 10 ? 10 : isize) + isize;
512512
osize = space;
513513
output = PyMem_Malloc(space * sizeof(Py_UCS4));

PCbuild/vs9to10.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Run this file after automatic convertsion of the VisualStudio 2008 solution by VisualStudio 2010.
1+
#Run this file after automatic conversion of the VisualStudio 2008 solution by VisualStudio 2010.
22
#This can be done whenever the 2008 solution changes.
33
#It will make the necessary cleanup and updates to the vcxproj files
44
#the .props files need to be maintained by hand if the .vsprops files change

Parser/asdl_c.py

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

10571057

10581058
class StaticVisitor(PickleVisitor):
1059-
CODE = '''Very simple, always emit this static code. Overide CODE'''
1059+
CODE = '''Very simple, always emit this static code. Override CODE'''
10601060

10611061
def visit(self, object):
10621062
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
@@ -61,7 +61,7 @@ def makefreeze(base, dict, debug=0, entry_point=None, fail_import=()):
6161
outfp.write('\t{"%s", M_%s, %d},\n' % (mod, mangled, size))
6262
outfp.write('\n')
6363
# The following modules have a NULL code pointer, indicating
64-
# that the prozen program should not search for them on the host
64+
# that the frozen program should not search for them on the host
6565
# system. Importing them will *always* raise an ImportError.
6666
# The zero value size is never used.
6767
for mod in fail_import:

Tools/gdb/libpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ class PyDictObjectPtr(PyObjectPtr):
632632
def iteritems(self):
633633
'''
634634
Yields a sequence of (PyObjectPtr key, PyObjectPtr value) pairs,
635-
analagous to dict.iteritems()
635+
analogous to dict.iteritems()
636636
'''
637637
keys = self.field('ma_keys')
638638
values = self.field('ma_values')

Tools/i18n/msgfmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def make(filename, outfile):
154154
# This is a message with plural forms
155155
elif l.startswith('msgid_plural'):
156156
if section != ID:
157-
print('msgid_plural not preceeded by msgid on %s:%d' % (infile, lno),
157+
print('msgid_plural not preceded by msgid on %s:%d' % (infile, lno),
158158
file=sys.stderr)
159159
sys.exit(1)
160160
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
@@ -462,7 +462,7 @@ def parse(self):
462462
handler = getattr(self, handlername)
463463
except AttributeError:
464464
if value == '':
465-
# count the number of occurances
465+
# count the number of occurrences
466466
if optionname in values:
467467
values[optionname] = values[optionname] + 1
468468
else:

0 commit comments

Comments
 (0)