mirror of https://github.com/dirtbags/moth.git
Fixed HTTPStatus to work under Python3.4
This commit is contained in:
parent
80ad3c5f26
commit
ea510e0fd8
|
@ -17,9 +17,9 @@ try:
|
||||||
from http.server import HTTPStatus
|
from http.server import HTTPStatus
|
||||||
except ImportError:
|
except ImportError:
|
||||||
class HTTPStatus:
|
class HTTPStatus:
|
||||||
OK = (200, 'OK', 'Request fulfilled, document follows')
|
OK = 200
|
||||||
NOT_FOUND = (404, 'Not Found', 'Nothing matches the given URI')
|
NOT_FOUND = 404
|
||||||
INTERNAL_SERVER_ERROR = (500, 'Internal Server Error', 'Server got itself in trouble')
|
INTERNAL_SERVER_ERROR = 500
|
||||||
|
|
||||||
# XXX: This will eventually cause a problem. Do something more clever here.
|
# XXX: This will eventually cause a problem. Do something more clever here.
|
||||||
seed = 1
|
seed = 1
|
||||||
|
|
Loading…
Reference in New Issue