From 19d14ee1822b5fec9fce0dcde5d794065687af5e Mon Sep 17 00:00:00 2001 From: kgriffs Date: Wed, 26 Mar 2014 14:35:37 -0500 Subject: [PATCH] test(pep8): Fix errors reported by latest flake8 version --- falcon/api.py | 6 +++--- falcon/api_helpers.py | 4 ++-- falcon/request.py | 2 +- tests/test_httperror.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/falcon/api.py b/falcon/api.py index 7b59101..b4a8042 100644 --- a/falcon/api.py +++ b/falcon/api.py @@ -286,9 +286,9 @@ class API(object): # adds (will cause the last one to win). self._error_handlers.insert(0, (exception, handler)) -#---------------------------------------------------------------------------- -# Helpers -#---------------------------------------------------------------------------- + # ------------------------------------------------------------------------ + # Helpers + # ------------------------------------------------------------------------ def _get_responder(self, path, method): """Searches routes for a matching responder diff --git a/falcon/api_helpers.py b/falcon/api_helpers.py index a13545e..344017d 100644 --- a/falcon/api_helpers.py +++ b/falcon/api_helpers.py @@ -222,9 +222,9 @@ def create_http_method_map(resource, uri_fields, before, after): return method_map -#----------------------------------------------------------------------------- +# ----------------------------------------------------------------------------- # Helpers -#----------------------------------------------------------------------------- +# ----------------------------------------------------------------------------- def _wrap_with_hooks(before, after, responder): diff --git a/falcon/request.py b/falcon/request.py index 090e60d..45c8d5f 100644 --- a/falcon/request.py +++ b/falcon/request.py @@ -394,7 +394,7 @@ class Request(object): href=href, href_text=href_text) - # implicit return None + return None @property def uri(self): diff --git a/tests/test_httperror.py b/tests/test_httperror.py index 5c0418b..b5b4cb5 100644 --- a/tests/test_httperror.py +++ b/tests/test_httperror.py @@ -251,7 +251,7 @@ class TestHTTPError(testing.TestBase): body = self.simulate_request('/unicode') self.assertTrue(unicode_resource.called) - #self.assertEqual(self.srmock.status, falcon.HTTP_792) + self.assertEqual(self.srmock.status, falcon.HTTP_792) self.assertEqual(expected_body, body) def test_401(self):