Improve PEP8 http.py
This commit is contained in:
+2
-1
@@ -48,7 +48,7 @@ defined_status = {
|
|||||||
417: 'EXPECTATION FAILED',
|
417: 'EXPECTATION FAILED',
|
||||||
422: 'UNPROCESSABLE ENTITY',
|
422: 'UNPROCESSABLE ENTITY',
|
||||||
429: 'TOO MANY REQUESTS',
|
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',
|
500: 'INTERNAL SERVER ERROR',
|
||||||
501: 'NOT IMPLEMENTED',
|
501: 'NOT IMPLEMENTED',
|
||||||
502: 'BAD GATEWAY',
|
502: 'BAD GATEWAY',
|
||||||
@@ -60,6 +60,7 @@ defined_status = {
|
|||||||
|
|
||||||
regex_status = re.compile('^\d{3} [0-9A-Z ]+$')
|
regex_status = re.compile('^\d{3} [0-9A-Z ]+$')
|
||||||
|
|
||||||
|
|
||||||
class HTTP(Exception):
|
class HTTP(Exception):
|
||||||
"""Raises an HTTP response
|
"""Raises an HTTP response
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user