[Python-checkins] cpython (3.5): Fix spelling and grammar in code comments and documentation

martin.panter python-checkins at python.org
Sun Dec 18 00:43:52 EST 2016


https://hg.python.org/cpython/rev/06ceaf679213
changeset:   105722:06ceaf679213
branch:      3.5
parent:      105718:8687b3554b1f
user:        Martin Panter <vadmium+py at gmail.com>
date:        Sun Dec 18 01:23:09 2016 +0000
summary:
  Fix spelling and grammar in code comments and documentation

files:
  Doc/library/shutil.rst                |  2 +-
  Lib/distutils/tests/test_bdist_rpm.py |  2 +-
  Lib/test/test_unicode.py              |  2 +-
  Misc/HISTORY                          |  2 +-
  4 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -581,7 +581,7 @@
 
    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).
diff --git a/Lib/distutils/tests/test_bdist_rpm.py b/Lib/distutils/tests/test_bdist_rpm.py
--- a/Lib/distutils/tests/test_bdist_rpm.py
+++ b/Lib/distutils/tests/test_bdist_rpm.py
@@ -96,7 +96,7 @@
     @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')
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -2615,7 +2615,7 @@
                      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',
diff --git a/Misc/HISTORY b/Misc/HISTORY
--- a/Misc/HISTORY
+++ b/Misc/HISTORY
@@ -2194,7 +2194,7 @@
   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.
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list