summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-04-19 04:03:41 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-04-19 04:03:41 (GMT)
commit8f26565ba9e3d32f6c953b04c1b9f9d13c2e1818 (patch)
tree6ed1a5aaa6ede819ec672beae759c18f6d428121 /Lib
parent0d88c652318c4c5eed77fd2e78e9e955ffa5c8d1 (diff)
downloadcpython-8f26565ba9e3d32f6c953b04c1b9f9d13c2e1818.zip
cpython-8f26565ba9e3d32f6c953b04c1b9f9d13c2e1818.tar.gz
cpython-8f26565ba9e3d32f6c953b04c1b9f9d13c2e1818.tar.bz2
Fix spelling (inital), grammar (may translates) in documentation, comments
Diffstat (limited to 'Lib')
-rw-r--r--Lib/gzip.py2
-rw-r--r--Lib/optparse.py2
-rw-r--r--Lib/test/test_tracemalloc.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py
index 3a2b322..da4479e 100644
--- a/Lib/gzip.py
+++ b/Lib/gzip.py
@@ -133,7 +133,7 @@ class GzipFile(_compression.BaseStream):
a file object.
When fileobj is not None, the filename argument is only used to be
- included in the gzip file header, which may includes the original
+ included in the gzip file header, which may include the original
filename of the uncompressed file. It defaults to the filename of
fileobj, if discernible; otherwise, it defaults to the empty string,
and in this case the original filename is not included in the header.
diff --git a/Lib/optparse.py b/Lib/optparse.py
index 5bc9051..74b3b36 100644
--- a/Lib/optparse.py
+++ b/Lib/optparse.py
@@ -900,7 +900,7 @@ class OptionContainer:
_short_opt : { string : Option }
dictionary mapping short option strings, eg. "-f" or "-X",
to the Option instances that implement them. If an Option
- has multiple short option strings, it will appears in this
+ has multiple short option strings, it will appear in this
dictionary multiple times. [1]
_long_opt : { string : Option }
dictionary mapping long option strings, eg. "--file" or
diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py
index f65e361..da89a9a 100644
--- a/Lib/test/test_tracemalloc.py
+++ b/Lib/test/test_tracemalloc.py
@@ -253,7 +253,7 @@ class TestTracemallocEnabled(unittest.TestCase):
snapshot.dump(support.TESTFN)
self.addCleanup(support.unlink, support.TESTFN)
- # load() should recreates the attribute
+ # load() should recreate the attribute
snapshot2 = tracemalloc.Snapshot.load(support.TESTFN)
self.assertEqual(snapshot2.test_attr, "new")