diff --git a/pyfarm/master/api/tasklogs.py b/pyfarm/master/api/tasklogs.py index 10f7104c..317993e7 100644 --- a/pyfarm/master/api/tasklogs.py +++ b/pyfarm/master/api/tasklogs.py @@ -23,13 +23,17 @@ """ try: - from httplib import OK, NOT_FOUND, CONFLICT, TEMPORARY_REDIRECT, CREATED + from httplib import ( + OK, NOT_FOUND, CONFLICT, TEMPORARY_REDIRECT, CREATED, BAD_REQUEST, + INTERNAL_SERVER_ERROR) except ImportError: # pragma: no cover - from http.client import OK, NOT_FOUND, CONFLICT, TEMPORARY_REDIRECT, CREATED + from http.client import ( + OK, NOT_FOUND, CONFLICT, TEMPORARY_REDIRECT, CREATED, BAD_REQUEST, + INTERNAL_SERVER_ERROR) import tempfile from os import makedirs -from os.path import join, isfile, realpath +from os.path import join, realpath from errno import EEXIST from flask.views import MethodView