From ea510e0fd85782aa2709c186556c0908d337c13a Mon Sep 17 00:00:00 2001 From: Shane Date: Wed, 23 Nov 2016 14:05:34 -0700 Subject: [PATCH] Fixed HTTPStatus to work under Python3.4 --- tools/devel-server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/devel-server.py b/tools/devel-server.py index 9b925cd..7332ed1 100755 --- a/tools/devel-server.py +++ b/tools/devel-server.py @@ -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