]> granicus.if.org Git - python/commitdiff
Fix spelling and grammar in code comments and documentation
authorMartin Panter <vadmium+py@gmail.com>
Sun, 18 Dec 2016 01:23:09 +0000 (01:23 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sun, 18 Dec 2016 01:23:09 +0000 (01:23 +0000)
Doc/library/shutil.rst
Lib/distutils/tests/test_bdist_rpm.py
Lib/test/test_unicode.py
Misc/HISTORY

index 66e32e6c6af1fd6c02f9ecd12e0c4c0da8262ffb..669475f9de3ff8ce05143f8565ce604d8c57b438 100644 (file)
@@ -581,7 +581,7 @@ provided.  They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
 
    By default :mod:`shutil` provides these formats:
 
-   - *zip*: ZIP file (unpacking compressed files works only if corresponding
+   - *zip*: ZIP file (unpacking compressed files works only if the corresponding
      module is available).
    - *tar*: uncompressed tar file.
    - *gztar*: gzip'ed tar-file (if the :mod:`zlib` module is available).
index e9795ee4b2bf5fcdc0d595a9d1d9f7368deb4bd3..c5962dddd27be91e0cacade08dc28c258ae86604 100644 (file)
@@ -96,7 +96,7 @@ class BuildRpmTestCase(support.TempdirManager,
     @unittest.skipIf(find_executable('rpmbuild') is None,
                      'the rpmbuild command is not found')
     def test_no_optimize_flag(self):
-        # let's create a package that brakes bdist_rpm
+        # let's create a package that breaks bdist_rpm
         tmp_dir = self.mkdtemp()
         os.environ['HOME'] = tmp_dir   # to confine dir '.rpmdb' creation
         pkg_dir = os.path.join(tmp_dir, 'foo')
index 81e49d6aa04117cb1d479e72b90660c3d4c55e6c..f696a5bacf08035aba084b7ec485a629b343772b 100644 (file)
@@ -2615,7 +2615,7 @@ class CAPITest(unittest.TestCase):
                      b'repr=%V', None, b'abc\xff')
 
         # not supported: copy the raw format string. these tests are just here
-        # to check for crashs and should not be considered as specifications
+        # to check for crashes and should not be considered as specifications
         check_format('%s',
                      b'%1%s', b'abc')
         check_format('%1abc',
index 88cb286847492a7145d3a71ae0e5018980995ad6..9655d4cd40d9a37ad7847b8426b4c5654c0bd8b3 100644 (file)
@@ -2194,7 +2194,7 @@ Core and Builtins
   NULL).
 
 - Issue #10829: Refactor PyUnicode_FromFormat(), use the same function to parse
-  the format string in the 3 steps, fix crashs on invalid format strings.
+  the format string in the 3 steps, fix crashes on invalid format strings.
 
 - Issue #13007: whichdb should recognize gdbm 1.9 magic numbers.