diff -r d48faf442569 Lib/concurrent/futures/process.py --- a/Lib/concurrent/futures/process.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/concurrent/futures/process.py Wed Aug 14 23:17:58 2013 +0200 @@ -301,7 +301,7 @@ # sysconf not available or setting not available return if nsems_max == -1: - # indetermine limit, assume that limit is determined + # indetermined limit, assume that limit is determined # by available memory only return if nsems_max >= 256: @@ -415,7 +415,7 @@ self._result_queue.put(None) if wait: self._queue_management_thread.join() - # To reduce the risk of openning too many files, remove references to + # To reduce the risk of opening too many files, remove references to # objects that use file descriptors. self._queue_management_thread = None self._call_queue = None diff -r d48faf442569 Lib/ctypes/test/runtests.py --- a/Lib/ctypes/test/runtests.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/ctypes/test/runtests.py Wed Aug 14 23:17:58 2013 +0200 @@ -2,7 +2,7 @@ Run all tests found in this directory, and print a summary of the results. Command line flags: - -q quiet mode: don't prnt anything while the tests are running + -q quiet mode: don't print anything while the tests are running -r run tests repeatedly, look for refcount leaks -u Add resources to the lits of allowed resources. '*' allows all diff -r d48faf442569 Lib/ctypes/test/test_buffers.py --- a/Lib/ctypes/test/test_buffers.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/ctypes/test/test_buffers.py Wed Aug 14 23:17:58 2013 +0200 @@ -10,7 +10,7 @@ self.assertTrue(type(b[0]) is bytes) b = create_string_buffer(b"abc") - self.assertEqual(len(b), 4) # trailing nul char + self.assertEqual(len(b), 4) # trailing null char self.assertEqual(sizeof(b), 4 * sizeof(c_char)) self.assertTrue(type(b[0]) is bytes) self.assertEqual(b[0], b"a") @@ -36,7 +36,7 @@ self.assertTrue(type(b[0]) is str) b = create_unicode_buffer("abc") - self.assertEqual(len(b), 4) # trailing nul char + self.assertEqual(len(b), 4) # trailing null char self.assertEqual(sizeof(b), 4 * sizeof(c_wchar)) self.assertTrue(type(b[0]) is str) self.assertEqual(b[0], "a") @@ -48,7 +48,7 @@ def test_unicode_conversion(self): b = create_unicode_buffer("abc") - self.assertEqual(len(b), 4) # trailing nul char + self.assertEqual(len(b), 4) # trailing null char self.assertEqual(sizeof(b), 4 * sizeof(c_wchar)) self.assertTrue(type(b[0]) is str) self.assertEqual(b[0], "a") diff -r d48faf442569 Lib/ctypes/test/test_cfuncs.py --- a/Lib/ctypes/test/test_cfuncs.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/ctypes/test/test_cfuncs.py Wed Aug 14 23:17:58 2013 +0200 @@ -188,7 +188,7 @@ self.assertEqual(self._dll.tv_i(-42), None) self.assertEqual(self.S(), -42) -# The following repeates the above tests with stdcall functions (where +# The following repeats the above tests with stdcall functions (where # they are available) try: WinDLL diff -r d48faf442569 Lib/ctypes/test/test_numbers.py --- a/Lib/ctypes/test/test_numbers.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/ctypes/test/test_numbers.py Wed Aug 14 23:17:58 2013 +0200 @@ -213,7 +213,7 @@ def test_init(self): # c_int() can be initialized from Python's int, and c_int. - # Not from c_long or so, which seems strange, abd should + # Not from c_long or so, which seems strange, abc should # probably be changed: self.assertRaises(TypeError, c_int, c_long(42)) diff -r d48faf442569 Lib/ctypes/test/test_refcounts.py --- a/Lib/ctypes/test/test_refcounts.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/ctypes/test/test_refcounts.py Wed Aug 14 23:17:58 2013 +0200 @@ -44,7 +44,7 @@ # this is the standard refcount for func self.assertEqual(grc(func), 2) - # the CFuncPtr instance holds atr least one refcount on func: + # the CFuncPtr instance holds at least one refcount on func: f = OtherCallback(func) self.assertTrue(grc(func) > 2) @@ -61,7 +61,7 @@ x = X() x.a = OtherCallback(func) - # the CFuncPtr instance holds atr least one refcount on func: + # the CFuncPtr instance holds at least one refcount on func: self.assertTrue(grc(func) > 2) # and may release it again @@ -74,7 +74,7 @@ f = OtherCallback(func) - # the CFuncPtr instance holds atr least one refcount on func: + # the CFuncPtr instance holds at least one refcount on func: self.assertTrue(grc(func) > 2) # create a cycle diff -r d48faf442569 Lib/ctypes/test/test_structures.py --- a/Lib/ctypes/test/test_structures.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/ctypes/test/test_structures.py Wed Aug 14 23:17:58 2013 +0200 @@ -108,7 +108,7 @@ def test_emtpy(self): # I had problems with these # - # Although these are patological cases: Empty Structures! + # Although these are pathological cases: Empty Structures! class X(Structure): _fields_ = [] diff -r d48faf442569 Lib/distutils/command/install.py --- a/Lib/distutils/command/install.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/distutils/command/install.py Wed Aug 14 23:17:58 2013 +0200 @@ -530,7 +530,7 @@ self.extra_dirs = extra_dirs def change_roots(self, *names): - """Change the install direcories pointed by name using root.""" + """Change the install directories pointed by name using root.""" for name in names: attr = "install_" + name setattr(self, attr, change_root(self.root, getattr(self, attr))) diff -r d48faf442569 Lib/distutils/command/sdist.py --- a/Lib/distutils/command/sdist.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/distutils/command/sdist.py Wed Aug 14 23:17:58 2013 +0200 @@ -175,7 +175,7 @@ depends on the user's options. """ # new behavior when using a template: - # the file list is recalculated everytime because + # the file list is recalculated every time because # even if MANIFEST.in or setup.py are not changed # the user might have added some files in the tree that # need to be included. diff -r d48faf442569 Lib/distutils/tests/test_build_clib.py --- a/Lib/distutils/tests/test_build_clib.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/distutils/tests/test_build_clib.py Wed Aug 14 23:17:58 2013 +0200 @@ -77,7 +77,7 @@ cmd.compiler = FakeCompiler() - # build_libraries is also doing a bit of typoe checking + # build_libraries is also doing a bit of typo checking lib = [('name', {'sources': 'notvalid'})] self.assertRaises(DistutilsSetupError, cmd.build_libraries, lib) diff -r d48faf442569 Lib/idlelib/idle_test/mock_tk.py --- a/Lib/idlelib/idle_test/mock_tk.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/idlelib/idle_test/mock_tk.py Wed Aug 14 23:17:58 2013 +0200 @@ -35,7 +35,7 @@ """Mock for tkinter.messagebox with an Mbox_func for each function. This module was 'tkMessageBox' in 2.x; hence the 'import as' in 3.x. - Example usage in test_module.py for testing functios in module.py: + Example usage in test_module.py for testing functions in module.py: --- from idlelib.idle_test.mock_tk import Mbox import module @@ -98,7 +98,7 @@ This implements .index without converting the result back to a string. The result is contrained by the number of lines and linelengths of - self.data. For many indexes, the result is initally (1, 0). + self.data. For many indexes, the result is initially (1, 0). The input index may have any of several possible forms: * line.char float: converted to 'line.char' string; @@ -149,7 +149,7 @@ -1: position before terminal \n; for .insert(), .delete 0: position after terminal \n; for .get, .delete index 1 - 1: same viewed as begininning of non-existent next line (for .index) + 1: same viewed as beginning of non-existent next line (for .index) ''' n = len(self.data) if endflag == 1: @@ -271,7 +271,7 @@ "Scroll screen to make the character at INDEX is visible." pass - # The following is a Misc method inheritet by Text. + # The following is a Misc method inherited by Text. # It should properly go in a Misc mock, but is included here for now. def bind(sequence=None, func=None, add=None): diff -r d48faf442569 Lib/idlelib/idle_test/test_formatparagraph.py --- a/Lib/idlelib/idle_test/test_formatparagraph.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/idlelib/idle_test/test_formatparagraph.py Wed Aug 14 23:17:58 2013 +0200 @@ -244,7 +244,7 @@ """Test the formatting of text inside a Text widget. This is done with FormatParagraph.format.paragraph_event, - which calls funtions in the module as appropriate. + which calls functions in the module as appropriate. """ test_string = ( " '''this is a test of a reformat for a triple " diff -r d48faf442569 Lib/lib2to3/fixes/fix_itertools.py --- a/Lib/lib2to3/fixes/fix_itertools.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/lib2to3/fixes/fix_itertools.py Wed Aug 14 23:17:58 2013 +0200 @@ -34,8 +34,8 @@ # Remove the 'itertools' prefix = it.prefix it.remove() - # Replace the node wich contains ('.', 'function') with the - # function (to be consistant with the second part of the pattern) + # Replace the node which contains ('.', 'function') with the + # function (to be consistent with the second part of the pattern) dot.remove() func.parent.replace(func) diff -r d48faf442569 Lib/lib2to3/fixes/fix_metaclass.py --- a/Lib/lib2to3/fixes/fix_metaclass.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/lib2to3/fixes/fix_metaclass.py Wed Aug 14 23:17:58 2013 +0200 @@ -71,7 +71,7 @@ def fixup_simple_stmt(parent, i, stmt_node): """ if there is a semi-colon all the parts count as part of the same simple_stmt. We just want the __metaclass__ part so we move - everything efter the semi-colon into its own simple_stmt node + everything after the semi-colon into its own simple_stmt node """ for semi_ind, node in enumerate(stmt_node.children): if node.type == token.SEMI: # *sigh* diff -r d48faf442569 Lib/lib2to3/tests/test_parser.py --- a/Lib/lib2to3/tests/test_parser.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/lib2to3/tests/test_parser.py Wed Aug 14 23:17:58 2013 +0200 @@ -77,7 +77,7 @@ self.invalid_syntax("raise E from") -# Adapated from Python 3's Lib/test/test_grammar.py:GrammarTests.testFuncdef +# Adaptated from Python 3's Lib/test/test_grammar.py:GrammarTests.testFuncdef class TestFunctionAnnotations(GrammarTest): def test_1(self): self.validate("""def f(x) -> list: pass""") diff -r d48faf442569 Lib/sqlite3/test/dbapi.py --- a/Lib/sqlite3/test/dbapi.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/sqlite3/test/dbapi.py Wed Aug 14 23:17:58 2013 +0200 @@ -1,7 +1,7 @@ -#-*- coding: iso-8859-1 -*- +#-*- coding: utf-8 -*- # pysqlite2/test/dbapi.py: tests for DB-API compliance # -# Copyright (C) 2004-2010 Gerhard Häring +# Copyright (C) 2004-2010 Gerhard Hring # # This file is part of pysqlite. # diff -r d48faf442569 Lib/sqlite3/test/regression.py --- a/Lib/sqlite3/test/regression.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/sqlite3/test/regression.py Wed Aug 14 23:17:58 2013 +0200 @@ -161,7 +161,8 @@ def CheckCursorConstructorCallCheck(self): """ - Verifies that cursor methods check wether base class __init__ was called. + Verifies that cursor methods check whether base class __init__ was + called. """ class Cursor(sqlite.Cursor): def __init__(self, con): @@ -187,7 +188,8 @@ def CheckConnectionConstructorCallCheck(self): """ - Verifies that connection methods check wether base class __init__ was called. + Verifies that connection methods check whether base class __init__ was + called. """ class Connection(sqlite.Connection): def __init__(self, name): diff -r d48faf442569 Lib/sqlite3/test/types.py --- a/Lib/sqlite3/test/types.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/sqlite3/test/types.py Wed Aug 14 23:17:58 2013 +0200 @@ -229,7 +229,7 @@ self.assertEqual(type(value), float) def CheckNumber2(self): - """Checks wether converter names are cut off at '(' characters""" + """Checks whether converter names are cut off at '(' characters""" self.cur.execute("insert into test(n2) values (5)") value = self.cur.execute("select n2 from test").fetchone()[0] # if the converter is not used, it's an int instead of a float diff -r d48faf442569 Lib/test/support/__init__.py --- a/Lib/test/support/__init__.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/test/support/__init__.py Wed Aug 14 23:17:58 2013 +0200 @@ -252,7 +252,7 @@ if sys.platform.startswith("win"): def _waitfor(func, pathname, waitall=False): - # Peform the operation + # Perform the operation func(pathname) # Now setup the wait loop if waitall: @@ -268,7 +268,7 @@ # required when contention occurs. timeout = 0.001 while timeout < 1.0: - # Note we are only testing for the existance of the file(s) in + # Note we are only testing for the existence of the file(s) in # the contents of the directory regardless of any security or # access rights. If we have made it this far, we have sufficient # permissions to do that much using Python's equivalent of the diff -r d48faf442569 Lib/test/test_email/test_headerregistry.py --- a/Lib/test/test_email/test_headerregistry.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/test/test_email/test_headerregistry.py Wed Aug 14 23:17:58 2013 +0200 @@ -531,7 +531,7 @@ '\tname*1*=%2A%2A%2Afun%2A%2A%2A%20;\tname*2="is it not.pdf"\n'), ), - # Make sure we also handle it if there are spurrious double qoutes. + # Make sure we also handle it if there are spurious double quotes. 'rfc2231_encoded_with_double_quotes': ( ("text/plain;" '\tname*0*="us-ascii\'\'This%20is%20even%20more%20";' @@ -711,8 +711,8 @@ # in double quotes, making the value a valid non-encoded string. The # old parser decodes this just like the previous case, which may be the # better Postel rule, but could equally result in borking headers that - # intentially have quoted quotes in them. We could get this 98% right - # if we treat it as a quoted string *unless* it matches the + # intentionally have quoted quotes in them. We could get this 98% + # right if we treat it as a quoted string *unless* it matches the # charset'lang'value pattern exactly *and* there is at least one # encoded segment. Implementing that algorithm will require some # refactoring, so I haven't done it (yet). @@ -944,7 +944,7 @@ [errors.InvalidHeaderDefect]), # Unrecoverable invalid values. We *could* apply more heuristics to - # get someing out of the first two, but doing so is not worth the + # get something out of the first two, but doing so is not worth the # effort. 'non_comment_garbage_before': ( @@ -1541,13 +1541,13 @@ def test_fold_unstructured_with_commas(self): # The old wrapper would fold this at the commas. h = self.make_header('Subject', "This header is intended to " - "demonstrate, in a fairly susinct way, that we now do " + "demonstrate, in a fairly succinct way, that we now do " "not give a , special treatment in unstructured headers.") self.assertEqual( h.fold(policy=policy.default.clone(max_line_length=60)), textwrap.dedent("""\ Subject: This header is intended to demonstrate, in a fairly - susinct way, that we now do not give a , special treatment + succinct way, that we now do not give a , special treatment in unstructured headers. """)) diff -r d48faf442569 Lib/unittest/test/test_case.py --- a/Lib/unittest/test/test_case.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/unittest/test/test_case.py Wed Aug 14 23:17:58 2013 +0200 @@ -1146,7 +1146,7 @@ self.assertWarns(DeprecationWarning, _runtime_warn) def testAssertWarnsContext(self): - # Believe it or not, it is preferrable to duplicate all tests above, + # Believe it or not, it is preferable to duplicate all tests above, # to make sure the __warningregistry__ $@ is circumvented correctly. def _runtime_warn(): warnings.warn("foo", RuntimeWarning) diff -r d48faf442569 Lib/unittest/test/test_loader.py --- a/Lib/unittest/test/test_loader.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/unittest/test/test_loader.py Wed Aug 14 23:17:58 2013 +0200 @@ -324,7 +324,7 @@ # Does loadTestsFromName raise TypeError when the `module` argument # isn't a module object? # - # XXX Accepts the not-a-module object, ignorning the object's type + # XXX Accepts the not-a-module object, ignoring the object's type # This should raise an exception or the method name should be changed # # XXX Some people are relying on this, so keep it for now diff -r d48faf442569 Lib/unittest/test/test_program.py --- a/Lib/unittest/test/test_program.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/unittest/test/test_program.py Wed Aug 14 23:17:58 2013 +0200 @@ -365,7 +365,7 @@ self.assertEqual(program.testNames, argv[1:]) # it may be better to use platform specific functions to normalise paths - # rather than accepting '.PY' and '\' as file seprator on Linux / Mac + # rather than accepting '.PY' and '\' as file separator on Linux / Mac # it would also be better to check that a filename is a valid module # identifier (we have a regex for this in loader.py) # for invalid filenames should we raise a useful error rather than diff -r d48faf442569 Lib/xml/etree/ElementTree.py --- a/Lib/xml/etree/ElementTree.py Wed Aug 14 14:41:48 2013 -0400 +++ b/Lib/xml/etree/ElementTree.py Wed Aug 14 23:17:58 2013 +0200 @@ -786,7 +786,7 @@ @contextlib.contextmanager def _get_writer(file_or_filename, encoding): - # returns text write method and release all resourses after using + # returns text write method and release all resources after using try: write = file_or_filename.write except AttributeError: