diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/http/client.py | 2 | ||||
-rw-r--r-- | Lib/test/test_argparse.py | 10 | ||||
-rw-r--r-- | Lib/warnings.py | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index 2d6e07b..350313e8 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -1155,7 +1155,7 @@ class HTTPConnection: If the HTTPConnection is in the correct state, returns an instance of HTTPResponse or of whatever object is returned by - class the response_class variable. + the response_class variable. If a request has not been sent or if a previous response has not be handled, ResponseNotReady is raised. If the HTTP diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py index f48e85c..f9ee398 100644 --- a/Lib/test/test_argparse.py +++ b/Lib/test/test_argparse.py @@ -534,7 +534,7 @@ class TestOptionalsNargsDefault(ParserTestCase): class TestOptionalsNargs1(ParserTestCase): - """Tests specifying the 1 arg for an Optional""" + """Tests specifying 1 arg for an Optional""" argument_signatures = [Sig('-x', nargs=1)] failures = ['a', '-x'] @@ -545,7 +545,7 @@ class TestOptionalsNargs1(ParserTestCase): class TestOptionalsNargs3(ParserTestCase): - """Tests specifying the 3 args for an Optional""" + """Tests specifying 3 args for an Optional""" argument_signatures = [Sig('-x', nargs=3)] failures = ['a', '-x', '-x a', '-x a b', 'a -x', 'a -x b'] @@ -579,7 +579,7 @@ class TestOptionalsNargsOptional(ParserTestCase): class TestOptionalsNargsZeroOrMore(ParserTestCase): - """Tests specifying an args for an Optional that accepts zero or more""" + """Tests specifying args for an Optional that accepts zero or more""" argument_signatures = [ Sig('-x', nargs='*'), @@ -598,7 +598,7 @@ class TestOptionalsNargsZeroOrMore(ParserTestCase): class TestOptionalsNargsOneOrMore(ParserTestCase): - """Tests specifying an args for an Optional that accepts one or more""" + """Tests specifying args for an Optional that accepts one or more""" argument_signatures = [ Sig('-x', nargs='+'), @@ -1251,7 +1251,7 @@ class TestPrefixCharacterOnlyArguments(ParserTestCase): class TestNargsZeroOrMore(ParserTestCase): - """Tests specifying an args for an Optional that accepts zero or more""" + """Tests specifying args for an Optional that accepts zero or more""" argument_signatures = [Sig('-x', nargs='*'), Sig('y', nargs='*')] failures = [] diff --git a/Lib/warnings.py b/Lib/warnings.py index cf9f5b2..dfa13ee 100644 --- a/Lib/warnings.py +++ b/Lib/warnings.py @@ -28,7 +28,7 @@ def formatwarning(message, category, filename, lineno, line=None): line = linecache.getline(filename, lineno) except Exception: # When a warning is logged during Python shutdown, linecache - # and the improt machinery don't work anymore + # and the import machinery don't work anymore line = None if line: line = line.strip() |