From df6fc812e3cacf4ac65f6e2dd6e90c84979d0ab7 Mon Sep 17 00:00:00 2001 From: Hardirc Date: Fri, 6 Mar 2015 22:06:37 -0500 Subject: [PATCH] Improve PEP8 http.py --- gluon/http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gluon/http.py b/gluon/http.py index ee25c006..53f5bf5d 100644 --- a/gluon/http.py +++ b/gluon/http.py @@ -48,7 +48,7 @@ defined_status = { 417: 'EXPECTATION FAILED', 422: 'UNPROCESSABLE ENTITY', 429: 'TOO MANY REQUESTS', - 451: 'UNAVAILABLE FOR LEGAL REASONS', # http://www.451unavailable.org/ + 451: 'UNAVAILABLE FOR LEGAL REASONS', # http://www.451unavailable.org/ 500: 'INTERNAL SERVER ERROR', 501: 'NOT IMPLEMENTED', 502: 'BAD GATEWAY', @@ -60,6 +60,7 @@ defined_status = { regex_status = re.compile('^\d{3} [0-9A-Z ]+$') + class HTTP(Exception): """Raises an HTTP response