Fixed HTTPStatus to work under Python3.4

This commit is contained in:
Shane 2016-11-23 14:05:34 -07:00
parent 80ad3c5f26
commit ea510e0fd8
1 changed files with 3 additions and 3 deletions

View File

@ -17,9 +17,9 @@ try:
from http.server import HTTPStatus
except ImportError:
class HTTPStatus:
OK = (200, 'OK', 'Request fulfilled, document follows')
NOT_FOUND = (404, 'Not Found', 'Nothing matches the given URI')
INTERNAL_SERVER_ERROR = (500, 'Internal Server Error', 'Server got itself in trouble')
OK = 200
NOT_FOUND = 404
INTERNAL_SERVER_ERROR = 500
# XXX: This will eventually cause a problem. Do something more clever here.
seed = 1