Skip to content

Commit 9a3777e

Browse files
committed
python#18705: merge with 3.3.
2 parents 07351a0 + 30b9d5d commit 9a3777e

26 files changed

+49
-49
lines changed

Lib/_osx_support.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _find_executable(executable, path=None):
5353

5454

5555
def _read_output(commandstring):
56-
"""Output from succesful command execution or None"""
56+
"""Output from successful command execution or None"""
5757
# Similar to os.popen(commandstring, "r").read(),
5858
# but without actually using os.popen because that
5959
# function is not usable during python bootstrap.
@@ -152,7 +152,7 @@ def _find_appropriate_compiler(_config_vars):
152152
# are not installed.
153153
#
154154
# Futhermore, the compiler that can be used varies between
155-
# Xcode releases. Upto Xcode 4 it was possible to use 'gcc-4.2'
155+
# Xcode releases. Up to Xcode 4 it was possible to use 'gcc-4.2'
156156
# as the compiler, after that 'clang' should be used because
157157
# gcc-4.2 is either not present, or a copy of 'llvm-gcc' that
158158
# miscompiles Python.
@@ -192,7 +192,7 @@ def _find_appropriate_compiler(_config_vars):
192192

193193
if cc != oldcc:
194194
# Found a replacement compiler.
195-
# Modify config vars using new compiler, if not already explictly
195+
# Modify config vars using new compiler, if not already explicitly
196196
# overriden by an env variable, preserving additional arguments.
197197
for cv in _COMPILER_CONFIG_VARS:
198198
if cv in _config_vars and cv not in os.environ:
@@ -274,7 +274,7 @@ def _check_for_unavailable_sdk(_config_vars):
274274
# compile an extension using an SDK that is not present
275275
# on the current machine it is better to not use an SDK
276276
# than to fail. This is particularly important with
277-
# the standalong Command Line Tools alternative to a
277+
# the standalone Command Line Tools alternative to a
278278
# full-blown Xcode install since the CLT packages do not
279279
# provide SDKs. If the SDK is not present, it is assumed
280280
# that the header files and dev libs have been installed
@@ -378,7 +378,7 @@ def customize_config_vars(_config_vars):
378378
compilers are present, i.e. when installing pure
379379
Python dists. Customization of compiler paths
380380
and detection of unavailable archs is deferred
381-
until the first extention module build is
381+
until the first extension module build is
382382
requested (in distutils.sysconfig.customize_compiler).
383383
384384
Currently called from distutils.sysconfig

Lib/_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def __seqToRE(self, to_convert, directive):
225225
"""Convert a list to a regex string for matching a directive.
226226
227227
Want possible matching values to be from longest to shortest. This
228-
prevents the possibility of a match occuring for a value that also
228+
prevents the possibility of a match occurring for a value that also
229229
a substring of a larger value that should have matched (e.g., 'abc'
230230
matching when 'abcdef' should have been the match).
231231

Lib/aifc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
compression type, and then write audio frames using writeframesraw.
124124
When all frames have been written, either call writeframes('') or
125125
close() to patch up the sizes in the header.
126-
Marks can be added anytime. If there are any marks, ypu must call
126+
Marks can be added anytime. If there are any marks, you must call
127127
close() after all frames have been written.
128128
The close() method is called automatically when the class instance
129129
is destroyed.

Lib/calendar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def monthdayscalendar(self, year, month):
220220
def yeardatescalendar(self, year, width=3):
221221
"""
222222
Return the data for the specified year ready for formatting. The return
223-
value is a list of month rows. Each month row contains upto width months.
223+
value is a list of month rows. Each month row contains up to width months.
224224
Each month contains between 4 and 6 weeks and each week contains 1-7
225225
days. Days are datetime.date objects.
226226
"""

Lib/contextlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def __exit__(self, *exc_info):
142142

143143
@contextmanager
144144
def ignored(*exceptions):
145-
"""Context manager to ignore specifed exceptions
145+
"""Context manager to ignore specified exceptions
146146
147147
with ignored(OSError):
148148
os.remove(somefile)

Lib/datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def _days_in_month(year, month):
4949
return _DAYS_IN_MONTH[month]
5050

5151
def _days_before_month(year, month):
52-
"year, month -> number of days in year preceeding first day of month."
52+
"year, month -> number of days in year preceding first day of month."
5353
assert 1 <= month <= 12, 'month must be in 1..12'
5454
return _DAYS_BEFORE_MONTH[month] + (month > 2 and _is_leap(year))
5555

Lib/difflib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def get_opcodes(self):
575575
def get_grouped_opcodes(self, n=3):
576576
""" Isolate change clusters by eliminating ranges with no changes.
577577
578-
Return a generator of groups with upto n lines of context.
578+
Return a generator of groups with up to n lines of context.
579579
Each group is in the same format as returned by get_opcodes().
580580
581581
>>> from pprint import pprint
@@ -1344,7 +1344,7 @@ def _mdiff(fromlines, tolines, context=None, linejunk=None,
13441344
linejunk -- passed on to ndiff (see ndiff documentation)
13451345
charjunk -- passed on to ndiff (see ndiff documentation)
13461346
1347-
This function returns an interator which returns a tuple:
1347+
This function returns an iterator which returns a tuple:
13481348
(from line tuple, to line tuple, boolean flag)
13491349
13501350
from/to line tuple -- (line num, line text)
@@ -1946,7 +1946,7 @@ def make_table(self,fromlines,tolines,fromdesc='',todesc='',context=False,
19461946
self._make_prefix()
19471947

19481948
# change tabs to spaces before it gets more difficult after we insert
1949-
# markkup
1949+
# markup
19501950
fromlines,tolines = self._tab_newline_replace(fromlines,tolines)
19511951

19521952
# create diffs iterator which generates side by side from/to data

Lib/doctest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ class Example:
417417
zero-based, with respect to the beginning of the DocTest.
418418
419419
- indent: The example's indentation in the DocTest string.
420-
I.e., the number of space characters that preceed the
420+
I.e., the number of space characters that precede the
421421
example's first prompt.
422422
423423
- options: A dictionary mapping from option flags to True or
@@ -897,7 +897,7 @@ def find(self, obj, name=None, module=None, globs=None, extraglobs=None):
897897
if '__name__' not in globs:
898898
globs['__name__'] = '__main__' # provide a default module name
899899

900-
# Recursively expore `obj`, extracting DocTests.
900+
# Recursively explore `obj`, extracting DocTests.
901901
tests = []
902902
self._find(tests, obj, name, module, source_lines, globs, {})
903903
# Sort the tests by alpha order of names, for consistency in

Lib/enum.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ def __setitem__(self, key, value):
9090
super().__setitem__(key, value)
9191

9292

93-
# Dummy value for Enum as EnumMeta explicity checks for it, but of course until
94-
# EnumMeta finishes running the first time the Enum class doesn't exist. This
95-
# is also why there are checks in EnumMeta like `if Enum is not None`
93+
# Dummy value for Enum as EnumMeta explicitly checks for it, but of course
94+
# until EnumMeta finishes running the first time the Enum class doesn't exist.
95+
# This is also why there are checks in EnumMeta like `if Enum is not None`
9696
Enum = None
9797

9898

Lib/genericpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def exists(path):
2323

2424

2525
# This follows symbolic links, so both islink() and isdir() can be true
26-
# for the same path ono systems that support symlinks
26+
# for the same path on systems that support symlinks
2727
def isfile(path):
2828
"""Test whether a path is a regular file"""
2929
try:

0 commit comments

Comments
 (0)