Improve PEP8 http.py

This commit is contained in:
Hardirc
2015-03-06 22:06:37 -05:00
parent 362e6dbad2
commit df6fc812e3
+2 -1
View File
@@ -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