summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorXtreak <tir.karthi@gmail.com>2019-06-02 23:12:33 (GMT)
committerPetr Viktorin <encukou@gmail.com>2019-06-02 23:12:33 (GMT)
commit0d70227e419ab78c44d81b4ea6ae8aaf769470e6 (patch)
tree7fcafd5e2f1291c61989b119eff03ce7113bc928 /Lib
parente584cbff1ea78e700cf9943d50467e3b58301ccc (diff)
downloadcpython-0d70227e419ab78c44d81b4ea6ae8aaf769470e6.zip
cpython-0d70227e419ab78c44d81b4ea6ae8aaf769470e6.tar.gz
cpython-0d70227e419ab78c44d81b4ea6ae8aaf769470e6.tar.bz2
Fix typos in docs and docstrings (GH-13745)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/unix_events.py2
-rw-r--r--Lib/bdb.py2
-rw-r--r--Lib/distutils/ccompiler.py2
-rw-r--r--Lib/email/_header_value_parser.py2
-rw-r--r--Lib/encodings/__init__.py2
-rw-r--r--Lib/lib2to3/fixes/fix_metaclass.py2
-rw-r--r--Lib/pstats.py4
-rw-r--r--Lib/pyclbr.py2
-rw-r--r--Lib/ssl.py2
-rw-r--r--Lib/turtle.py2
-rwxr-xr-xLib/turtledemo/paint.py2
-rw-r--r--Lib/zipfile.py2
12 files changed, 13 insertions, 13 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py
index 6714542..b943845 100644
--- a/Lib/asyncio/unix_events.py
+++ b/Lib/asyncio/unix_events.py
@@ -193,7 +193,7 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
# prevents subprocess execution if the watcher
# is not ready to handle it.
raise RuntimeError("asyncio.get_child_watcher() is not activated, "
- "subproccess support is not installed.")
+ "subprocess support is not installed.")
waiter = self.create_future()
transp = _UnixSubprocessTransport(self, protocol, args, shell,
stdin, stdout, stderr, bufsize,
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 6917436..96e7d18 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -384,7 +384,7 @@ class Bdb:
return None
def _prune_breaks(self, filename, lineno):
- """Prune breakpoints for filname:lineno.
+ """Prune breakpoints for filename:lineno.
A list of breakpoints is maintained in the Bdb instance and in
the Breakpoint class. If a breakpoint in the Bdb instance no
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py
index b71d1d3..1a411ed 100644
--- a/Lib/distutils/ccompiler.py
+++ b/Lib/distutils/ccompiler.py
@@ -545,7 +545,7 @@ class CCompiler:
'extra_preargs' and 'extra_postargs' are implementation- dependent.
On platforms that have the notion of a command-line (e.g. Unix,
DOS/Windows), they are most likely lists of strings: extra
- command-line arguments to prepand/append to the compiler command
+ command-line arguments to prepend/append to the compiler command
line. On other platforms, consult the implementation class
documentation. In any event, they are intended as an escape hatch
for those occasions when the abstract compiler framework doesn't
diff --git a/Lib/email/_header_value_parser.py b/Lib/email/_header_value_parser.py
index 649f153..14cc00c 100644
--- a/Lib/email/_header_value_parser.py
+++ b/Lib/email/_header_value_parser.py
@@ -2385,7 +2385,7 @@ def parse_mime_parameters(value):
the formal RFC grammar, but it is more convenient for us for the set of
parameters to be treated as its own TokenList.
- This is 'parse' routine because it consumes the reminaing value, but it
+ This is 'parse' routine because it consumes the remaining value, but it
would never be called to parse a full header. Instead it is called to
parse everything after the non-parameter value of a specific MIME header.
diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py
index d737d53..ddd5afd 100644
--- a/Lib/encodings/__init__.py
+++ b/Lib/encodings/__init__.py
@@ -12,7 +12,7 @@
* getregentry() -> codecs.CodecInfo object
The getregentry() API must return a CodecInfo object with encoder, decoder,
incrementalencoder, incrementaldecoder, streamwriter and streamreader
- atttributes which adhere to the Python Codec Interface Standard.
+ attributes which adhere to the Python Codec Interface Standard.
In addition, a module may optionally also define the following
APIs which are then used by the package's codec search function:
diff --git a/Lib/lib2to3/fixes/fix_metaclass.py b/Lib/lib2to3/fixes/fix_metaclass.py
index 8e34463..d1cd10d 100644
--- a/Lib/lib2to3/fixes/fix_metaclass.py
+++ b/Lib/lib2to3/fixes/fix_metaclass.py
@@ -1,6 +1,6 @@
"""Fixer for __metaclass__ = X -> (metaclass=X) methods.
- The various forms of classef (inherits nothing, inherits once, inherints
+ The various forms of classef (inherits nothing, inherits once, inherits
many) don't parse the same in the CST so we look at ALL classes for
a __metaclass__ and if we find one normalize the inherits to all be
an arglist.
diff --git a/Lib/pstats.py b/Lib/pstats.py
index b7649eb..4b419a8 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -632,12 +632,12 @@ if __name__ == '__main__':
print("", file=self.stream)
return 1
def help_EOF(self):
- print("Leave the profile brower.", file=self.stream)
+ print("Leave the profile browser.", file=self.stream)
def do_quit(self, line):
return 1
def help_quit(self):
- print("Leave the profile brower.", file=self.stream)
+ print("Leave the profile browser.", file=self.stream)
def do_read(self, line):
if line:
diff --git a/Lib/pyclbr.py b/Lib/pyclbr.py
index 8fd0523..99a1734 100644
--- a/Lib/pyclbr.py
+++ b/Lib/pyclbr.py
@@ -50,7 +50,7 @@ _modules = {} # Initialize cache of modules we've seen.
class _Object:
- "Informaton about Python class or function."
+ "Information about Python class or function."
def __init__(self, module, name, file, lineno, parent):
self.module = module
self.name = name
diff --git a/Lib/ssl.py b/Lib/ssl.py
index f5fa6ae..4afa46e 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -862,7 +862,7 @@ class SSLObject:
@property
def server_hostname(self):
"""The currently set server hostname (for SNI), or ``None`` if no
- server hostame is set."""
+ server hostname is set."""
return self._sslobj.server_hostname
def read(self, len=1024, buffer=None):
diff --git a/Lib/turtle.py b/Lib/turtle.py
index 044d91c..ee67a35 100644
--- a/Lib/turtle.py
+++ b/Lib/turtle.py
@@ -833,7 +833,7 @@ class TurtleScreenBase(object):
Arguments: title is the title of the dialog window,
prompt is a text mostly describing what numerical information to input.
default: default value
- minval: minimum value for imput
+ minval: minimum value for input
maxval: maximum value for input
The number input must be in the range minval .. maxval if these are
diff --git a/Lib/turtledemo/paint.py b/Lib/turtledemo/paint.py
index dde1691..fc6852a 100755
--- a/Lib/turtledemo/paint.py
+++ b/Lib/turtledemo/paint.py
@@ -7,7 +7,7 @@ A simple event-driven paint program
- left mouse button moves turtle
- middle mouse button changes color
-- right mouse button toogles betweem pen up
+- right mouse button toggles between pen up
(no line drawn when the turtle moves) and
pen down (line is drawn). If pen up follows
at least two pen-down moves, the polygon that
diff --git a/Lib/zipfile.py b/Lib/zipfile.py
index 5496f6e..62f2fd2 100644
--- a/Lib/zipfile.py
+++ b/Lib/zipfile.py
@@ -2163,7 +2163,7 @@ class Path:
>>> (b / 'missing.txt').exists()
False
- Coersion to string:
+ Coercion to string:
>>> str(c)
'abcde.zip/b/c.txt'