diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/plat-freebsd7/IN.py | 8 | ||||
-rw-r--r-- | Lib/test/test_enumerate.py | 2 | ||||
-rw-r--r-- | Lib/test/test_urllib2.py | 2 | ||||
-rw-r--r-- | Lib/urllib2.py | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/Lib/plat-freebsd7/IN.py b/Lib/plat-freebsd7/IN.py index eb55a87..77314ac 100644 --- a/Lib/plat-freebsd7/IN.py +++ b/Lib/plat-freebsd7/IN.py @@ -23,13 +23,13 @@ __CC_SUPPORTS_WARNING = 1 __CC_SUPPORTS_VARADIC_XXX = 1 __CC_SUPPORTS_DYNAMIC_ARRAY_INIT = 1 __CC_INT_IS_32BIT = 1 -def __P(protos): return protos +def __P(protos): return protos -def __STRING(x): return #x +def __STRING(x): return #x -def __XSTRING(x): return __STRING(x) +def __XSTRING(x): return __STRING(x) -def __P(protos): return () +def __P(protos): return () def __STRING(x): return "x" diff --git a/Lib/test/test_enumerate.py b/Lib/test/test_enumerate.py index 0a88e8d..b6a18ee 100644 --- a/Lib/test/test_enumerate.py +++ b/Lib/test/test_enumerate.py @@ -193,7 +193,7 @@ class TestReversed(unittest.TestCase): else: self.fail("non-callable __reversed__ didn't raise!") self.assertEqual(rc, sys.getrefcount(r)) - + def test_main(verbose=None): testclasses = (EnumerateTestCase, SubclassTestCase, TestEmpty, TestBig, diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 1c0b7da..b07fd36 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -40,7 +40,7 @@ class TrivialTests(unittest.TestCase): buf = f.read() f.close() - + def test_statudict(self): # test the new-in-2.5 httpresponses dictionary self.assertEquals(urllib2.httpresponses[404], "Not Found") diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 7202507..e9fb396 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -1298,7 +1298,7 @@ class OpenerFactory: httpresponses = { 100: 'Continue', 101: 'Switching Protocols', - + 200: 'OK', 201: 'Created', 202: 'Accepted', @@ -1306,7 +1306,7 @@ httpresponses = { 204: 'No Content', 205: 'Reset Content', 206: 'Partial Content', - + 300: 'Multiple Choices', 301: 'Moved Permanently', 302: 'Found', @@ -1315,7 +1315,7 @@ httpresponses = { 305: 'Use Proxy', 306: '(Unused)', 307: 'Temporary Redirect', - + 400: 'Bad Request', 401: 'Unauthorized', 402: 'Payment Required', @@ -1334,7 +1334,7 @@ httpresponses = { 415: 'Unsupported Media Type', 416: 'Requested Range Not Satisfiable', 417: 'Expectation Failed', - + 500: 'Internal Server Error', 501: 'Not Implemented', 502: 'Bad Gateway', |