summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-01-13 14:20:31 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-01-13 14:20:31 (GMT)
commit610bc6a211be33b390a9910943f1f9fb7656f634 (patch)
tree9498dd48c73ea91305805a6e1967f32becd39d70 /Lib
parent458fc6f98ca9a838af5dcdff64fd48ae3eb64fa9 (diff)
parent82f34ada45f96c13eb68927d6beccdcbab2c77b3 (diff)
downloadcpython-610bc6a211be33b390a9910943f1f9fb7656f634.zip
cpython-610bc6a211be33b390a9910943f1f9fb7656f634.tar.gz
cpython-610bc6a211be33b390a9910943f1f9fb7656f634.tar.bz2
merge 3.4 (#23221)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/dir_util.py2
-rw-r--r--Lib/http/cookiejar.py2
-rw-r--r--Lib/lib2to3/fixes/fix_exitfunc.py2
-rw-r--r--Lib/socket.py2
-rw-r--r--Lib/test/test_argparse.py2
5 files changed, 5 insertions, 5 deletions
diff --git a/Lib/distutils/dir_util.py b/Lib/distutils/dir_util.py
index 0924c9b..d5cd8e3 100644
--- a/Lib/distutils/dir_util.py
+++ b/Lib/distutils/dir_util.py
@@ -81,7 +81,7 @@ def create_tree(base_dir, files, mode=0o777, verbose=1, dry_run=0):
"""Create all the empty directories under 'base_dir' needed to put 'files'
there.
- 'base_dir' is just the a name of a directory which doesn't necessarily
+ 'base_dir' is just the name of a directory which doesn't necessarily
exist yet; 'files' is a list of filenames to be interpreted relative to
'base_dir'. 'base_dir' + the directory portion of every file in 'files'
will be created if it doesn't already exist. 'mode', 'verbose' and
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
index 4135ebf..22f2833 100644
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -1792,7 +1792,7 @@ class FileCookieJar(CookieJar):
def lwp_cookie_str(cookie):
- """Return string representation of Cookie in an the LWP cookie file format.
+ """Return string representation of Cookie in the LWP cookie file format.
Actually, the format is extended a bit -- see module docstring.
diff --git a/Lib/lib2to3/fixes/fix_exitfunc.py b/Lib/lib2to3/fixes/fix_exitfunc.py
index 9afc2fa..2e47887 100644
--- a/Lib/lib2to3/fixes/fix_exitfunc.py
+++ b/Lib/lib2to3/fixes/fix_exitfunc.py
@@ -35,7 +35,7 @@ class FixExitfunc(fixer_base.BaseFix):
self.sys_import = None
def transform(self, node, results):
- # First, find a the sys import. We'll just hope it's global scope.
+ # First, find the sys import. We'll just hope it's global scope.
if "sys_import" in results:
if self.sys_import is None:
self.sys_import = results["sys_import"]
diff --git a/Lib/socket.py b/Lib/socket.py
index 7dc8ef0..5c26dd7 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -450,7 +450,7 @@ if hasattr(_socket.socket, "share"):
def fromshare(info):
""" fromshare(info) -> socket object
- Create a socket object from a the bytes object returned by
+ Create a socket object from the bytes object returned by
socket.share(pid).
"""
return socket(0, 0, 0, info)
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py
index b386ec1..d7e6cda 100644
--- a/Lib/test/test_argparse.py
+++ b/Lib/test/test_argparse.py
@@ -635,7 +635,7 @@ class TestOptionalsChoices(ParserTestCase):
class TestOptionalsRequired(ParserTestCase):
- """Tests the an optional action that is required"""
+ """Tests an optional action that is required"""
argument_signatures = [
Sig('-x', type=int, required=True),