]> granicus.if.org Git - python/commitdiff
Fix typos in documentation and comments
authorMartin Panter <vadmium+py@gmail.com>
Tue, 5 Apr 2016 06:19:42 +0000 (06:19 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Tue, 5 Apr 2016 06:19:42 +0000 (06:19 +0000)
Include/unicodeobject.h
Lib/test/test_argparse.py
Misc/NEWS
README

index 1269bf67e0becebd59da702e88478a71684ee18b..d15ebb8df60bff04676865c8b0ba45bf8085c73b 100644 (file)
@@ -1318,7 +1318,7 @@ PyAPI_FUNC(PyObject *) PyUnicode_Format(
 /* Checks whether element is contained in container and return 1/0
    accordingly.
 
-   element has to coerce to an one element Unicode string. -1 is
+   element has to coerce to a one element Unicode string. -1 is
    returned in case of an error. */
 
 PyAPI_FUNC(int) PyUnicode_Contains(
index 915e989ddbec0425a746b35b8560dbb206ac7c25..83f6f27d78ea310ed74e000980d2ef2eee284d5f 100644 (file)
@@ -548,7 +548,7 @@ class TestOptionalsNargsDefault(ParserTestCase):
 
 
 class TestOptionalsNargs1(ParserTestCase):
-    """Tests specifying the 1 arg for an Optional"""
+    """Tests specifying 1 arg for an Optional"""
 
     argument_signatures = [Sig('-x', nargs=1)]
     failures = ['a', '-x']
@@ -559,7 +559,7 @@ class TestOptionalsNargs1(ParserTestCase):
 
 
 class TestOptionalsNargs3(ParserTestCase):
-    """Tests specifying the 3 args for an Optional"""
+    """Tests specifying 3 args for an Optional"""
 
     argument_signatures = [Sig('-x', nargs=3)]
     failures = ['a', '-x', '-x a', '-x a b', 'a -x', 'a -x b']
@@ -593,7 +593,7 @@ class TestOptionalsNargsOptional(ParserTestCase):
 
 
 class TestOptionalsNargsZeroOrMore(ParserTestCase):
-    """Tests specifying an args for an Optional that accepts zero or more"""
+    """Tests specifying args for an Optional that accepts zero or more"""
 
     argument_signatures = [
         Sig('-x', nargs='*'),
@@ -612,7 +612,7 @@ class TestOptionalsNargsZeroOrMore(ParserTestCase):
 
 
 class TestOptionalsNargsOneOrMore(ParserTestCase):
-    """Tests specifying an args for an Optional that accepts one or more"""
+    """Tests specifying args for an Optional that accepts one or more"""
 
     argument_signatures = [
         Sig('-x', nargs='+'),
@@ -1232,7 +1232,7 @@ class TestPrefixCharacterOnlyArguments(ParserTestCase):
 
 
 class TestNargsZeroOrMore(ParserTestCase):
-    """Tests specifying an args for an Optional that accepts zero or more"""
+    """Tests specifying args for an Optional that accepts zero or more"""
 
     argument_signatures = [Sig('-x', nargs='*'), Sig('y', nargs='*')]
     failures = []
index 82f8d4c584a1b32fe1460cf16e325050ca3f7fbf..d6b490a2a88d320bed07543e31f11f010a5ac48c 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -3025,7 +3025,7 @@ Library
 - Issue #16152: fix tokenize to ignore whitespace at the end of the code when
   no newline is found.  Patch by Ned Batchelder.
 
-- Issue #16230: Fix a crash in select.select() when one the lists changes
+- Issue #16230: Fix a crash in select.select() when one of the lists changes
   size while iterated on.  Patch by Serhiy Storchaka.
 
 - Issue #16228: Fix a crash in the json module where a list changes size
diff --git a/README b/README
index 7359d9d2e32b7b7575fbe3a116ad0c2833886540..52b97a124d045b11e6e9a92e9c0737ce152968b4 100644 (file)
--- a/README
+++ b/README
@@ -210,7 +210,7 @@ profile the interpreter execution. Note also that any output, both stdout
 and stderr, that may appear at this step is supressed.
 
 Finally, the last step is to rebuild the interpreter, using the information
-collected in the previous one. The end result will be a the Python binary
+collected in the previous one. The end result will be a Python binary
 that is optimized and suitable for distribution or production installation.