cpython: 9e4685d703d4 (original) (raw)

Mercurial > cpython

changeset 85228:9e4685d703d4 3.3

#18741: fix more typos. Patch by Févry Thibault. [#18741]

Ezio Melotti ezio.melotti@gmail.com
date Sat, 17 Aug 2013 16:11:40 +0300
parents f09ca52747a6
children b3236989f869 61227b4c169f
files Lib/concurrent/futures/process.py Lib/ctypes/test/runtests.py Lib/ctypes/test/test_cfuncs.py Lib/ctypes/test/test_numbers.py Lib/ctypes/test/test_refcounts.py Lib/ctypes/test/test_structures.py Lib/distutils/command/install.py Lib/distutils/command/sdist.py Lib/distutils/tests/test_build_clib.py Lib/idlelib/idle_test/mock_tk.py Lib/idlelib/idle_test/test_formatparagraph.py Lib/lib2to3/fixes/fix_itertools.py Lib/lib2to3/fixes/fix_metaclass.py Lib/lib2to3/tests/test_parser.py Lib/sqlite3/test/regression.py Lib/sqlite3/test/types.py Lib/test/support/__init__.py Lib/test/test_email/test_headerregistry.py Lib/unittest/test/test_case.py Lib/unittest/test/test_loader.py Lib/unittest/test/test_program.py Lib/xml/etree/ElementTree.py
diffstat 22 files changed, 38 insertions(+), 36 deletions(-)[+] [-] Lib/concurrent/futures/process.py 4 Lib/ctypes/test/runtests.py 2 Lib/ctypes/test/test_cfuncs.py 2 Lib/ctypes/test/test_numbers.py 2 Lib/ctypes/test/test_refcounts.py 6 Lib/ctypes/test/test_structures.py 2 Lib/distutils/command/install.py 2 Lib/distutils/command/sdist.py 2 Lib/distutils/tests/test_build_clib.py 2 Lib/idlelib/idle_test/mock_tk.py 8 Lib/idlelib/idle_test/test_formatparagraph.py 2 Lib/lib2to3/fixes/fix_itertools.py 4 Lib/lib2to3/fixes/fix_metaclass.py 2 Lib/lib2to3/tests/test_parser.py 2 Lib/sqlite3/test/regression.py 6 Lib/sqlite3/test/types.py 2 Lib/test/support/__init__.py 4 Lib/test/test_email/test_headerregistry.py 12 Lib/unittest/test/test_case.py 2 Lib/unittest/test/test_loader.py 2 Lib/unittest/test/test_program.py 2 Lib/xml/etree/ElementTree.py 2

line wrap: on

line diff

--- a/Lib/concurrent/futures/process.py +++ b/Lib/concurrent/futures/process.py @@ -297,7 +297,7 @@ def _check_system_limits(): # sysconf not available or setting not available return if nsems_max == -1:

--- a/Lib/ctypes/test/runtests.py +++ b/Lib/ctypes/test/runtests.py @@ -2,7 +2,7 @@ Run all tests found in this directory, and print a summary of the results. Command line flags:

--- a/Lib/ctypes/test/test_cfuncs.py +++ b/Lib/ctypes/test/test_cfuncs.py @@ -188,7 +188,7 @@ class CFunctions(unittest.TestCase): 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

--- a/Lib/ctypes/test/test_numbers.py +++ b/Lib/ctypes/test/test_numbers.py @@ -213,7 +213,7 @@ class NumberTestCase(unittest.TestCase): def test_init(self): # c_int() can be initialized from Python's int, and c_int.

--- a/Lib/ctypes/test/test_refcounts.py +++ b/Lib/ctypes/test/test_refcounts.py @@ -44,7 +44,7 @@ class RefcountTestCase(unittest.TestCase # this is the standard refcount for func self.assertEqual(grc(func), 2)

@@ -61,7 +61,7 @@ class RefcountTestCase(unittest.TestCase x = X() x.a = OtherCallback(func)

# and may release it again @@ -74,7 +74,7 @@ class RefcountTestCase(unittest.TestCase f = OtherCallback(func)

# create a cycle

--- a/Lib/ctypes/test/test_structures.py +++ b/Lib/ctypes/test/test_structures.py @@ -108,7 +108,7 @@ class StructureTestCase(unittest.TestCas def test_emtpy(self): # I had problems with these #

--- a/Lib/distutils/command/install.py +++ b/Lib/distutils/command/install.py @@ -545,7 +545,7 @@ class install(Command): self.extra_dirs = extra_dirs def change_roots(self, *names):

--- a/Lib/distutils/command/sdist.py +++ b/Lib/distutils/command/sdist.py @@ -175,7 +175,7 @@ class sdist(Command): depends on the user's options. """ # new behavior when using a template:

--- a/Lib/distutils/tests/test_build_clib.py +++ b/Lib/distutils/tests/test_build_clib.py @@ -77,7 +77,7 @@ class BuildCLibTestCase(support.TempdirM cmd.compiler = FakeCompiler()

--- a/Lib/idlelib/idle_test/mock_tk.py +++ b/Lib/idlelib/idle_test/mock_tk.py @@ -35,7 +35,7 @@ class Mbox: """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.

The input index may have any of several possible forms: * line.char float: converted to 'line.char' string; @@ -149,7 +149,7 @@ class Text: -1: position before terminal \n; for .insert(), .delete 0: position after terminal \n; for .get, .delete index 1

@@ -271,7 +271,7 @@ class Text: "Scroll screen to make the character at INDEX is visible." pass

def bind(sequence=None, func=None, add=None):

--- a/Lib/idlelib/idle_test/test_formatparagraph.py +++ b/Lib/idlelib/idle_test/test_formatparagraph.py @@ -244,7 +244,7 @@ class FormatEventTest(unittest.TestCase) """Test the formatting of text inside a Text widget. This is done with FormatParagraph.format.paragraph_event,

--- a/Lib/lib2to3/fixes/fix_itertools.py +++ b/Lib/lib2to3/fixes/fix_itertools.py @@ -34,8 +34,8 @@ class FixItertools(fixer_base.BaseFix): # Remove the 'itertools' prefix = it.prefix it.remove()

--- a/Lib/lib2to3/fixes/fix_metaclass.py +++ b/Lib/lib2to3/fixes/fix_metaclass.py @@ -71,7 +71,7 @@ def fixup_parse_tree(cls_node): 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

--- a/Lib/lib2to3/tests/test_parser.py +++ b/Lib/lib2to3/tests/test_parser.py @@ -77,7 +77,7 @@ class TestRaiseChanges(GrammarTest): 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""")

--- a/Lib/sqlite3/test/regression.py +++ b/Lib/sqlite3/test/regression.py @@ -161,7 +161,8 @@ class RegressionTests(unittest.TestCase) def CheckCursorConstructorCallCheck(self): """

@@ -187,7 +188,8 @@ class RegressionTests(unittest.TestCase) def CheckConnectionConstructorCallCheck(self): """

--- a/Lib/sqlite3/test/types.py +++ b/Lib/sqlite3/test/types.py @@ -229,7 +229,7 @@ class DeclTypesTests(unittest.TestCase): self.assertEqual(type(value), float) def CheckNumber2(self):

--- a/Lib/test/support/init.py +++ b/Lib/test/support/init.py @@ -246,7 +246,7 @@ def unload(name): if sys.platform.startswith("win"): def _waitfor(func, pathname, waitall=False):

@@ -262,7 +262,7 @@ if sys.platform.startswith("win"): # required when contention occurs. timeout = 0.001 while timeout < 1.0:

--- a/Lib/test/test_email/test_headerregistry.py +++ b/Lib/test/test_email/test_headerregistry.py @@ -531,7 +531,7 @@ class TestContentTypeHeader(TestHeaderBa '\tname1=%2A%2A%2Afun%2A%2A%2A%20;\tname*2="is it not.pdf"\n'), ),

@@ -711,8 +711,8 @@ class TestContentTypeHeader(TestHeaderBa # 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

@@ -944,7 +944,7 @@ class TestMIMEVersionHeader(TestHeaderBa [errors.InvalidHeaderDefect]), # Unrecoverable invalid values. We could apply more heuristics to

'non_comment_garbage_before': ( @@ -1541,13 +1541,13 @@ class TestFolding(TestHeaderBase): 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 "

--- a/Lib/unittest/test/test_case.py +++ b/Lib/unittest/test/test_case.py @@ -1054,7 +1054,7 @@ test case self.assertWarns(DeprecationWarning, _runtime_warn) def testAssertWarnsContext(self):

--- a/Lib/unittest/test/test_loader.py +++ b/Lib/unittest/test/test_loader.py @@ -324,7 +324,7 @@ class Test_TestLoader(unittest.TestCase) # Does loadTestsFromName raise TypeError when the module argument # isn't a module object? #

--- a/Lib/unittest/test/test_program.py +++ b/Lib/unittest/test/test_program.py @@ -330,7 +330,7 @@ class TestCommandLineArgs(unittest.TestC self.assertEqual(program.testNames, argv[1:]) # it may be better to use platform specific functions to normalise paths

--- a/Lib/xml/etree/ElementTree.py +++ b/Lib/xml/etree/ElementTree.py @@ -836,7 +836,7 @@ class ElementTree: @contextlib.contextmanager def _get_writer(file_or_filename, encoding):