From 1aad10c71b36997d0fe94753c521289d6c879d46 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 9 Jan 2019 16:19:06 +0000 Subject: [PATCH] Removed redundant imports --- openflexure_microscope/api/app.py | 2 +- .../api/v1/blueprints/base.py | 2 +- .../api/v1/blueprints/camera/capture.py | 17 ++++++++-------- .../api/v1/blueprints/camera/preview.py | 1 - .../api/v1/blueprints/plugins.py | 1 - .../api/v1/blueprints/stage.py | 20 +++++++++---------- 6 files changed, 20 insertions(+), 23 deletions(-) diff --git a/openflexure_microscope/api/app.py b/openflexure_microscope/api/app.py index 413d98cb..8f6deb69 100644 --- a/openflexure_microscope/api/app.py +++ b/openflexure_microscope/api/app.py @@ -18,7 +18,7 @@ from flask import ( from flask.views import MethodView from werkzeug.exceptions import default_exceptions -from openflexure_microscope.api.utilities import parse_payload, get_from_payload, gen, get_bool, list_routes +from openflexure_microscope.api.utilities import list_routes from openflexure_microscope import Microscope, config from openflexure_microscope.camera.pi import StreamingCamera diff --git a/openflexure_microscope/api/v1/blueprints/base.py b/openflexure_microscope/api/v1/blueprints/base.py index da4205c7..2cddf431 100644 --- a/openflexure_microscope/api/v1/blueprints/base.py +++ b/openflexure_microscope/api/v1/blueprints/base.py @@ -1,4 +1,4 @@ -from openflexure_microscope.api.utilities import parse_payload, get_from_payload, gen, get_bool +from openflexure_microscope.api.utilities import gen from openflexure_microscope.api.v1.views import MicroscopeView from flask import Response, Blueprint, jsonify diff --git a/openflexure_microscope/api/v1/blueprints/camera/capture.py b/openflexure_microscope/api/v1/blueprints/camera/capture.py index c2f88395..69c3214b 100644 --- a/openflexure_microscope/api/v1/blueprints/camera/capture.py +++ b/openflexure_microscope/api/v1/blueprints/camera/capture.py @@ -1,4 +1,4 @@ -from openflexure_microscope.api.utilities import parse_payload, get_from_payload, gen, get_bool +from openflexure_microscope.api.utilities import gen, get_bool, JsonPayload from openflexure_microscope.api.v1.views import MicroscopeView from flask import Response, Blueprint, jsonify, request, abort, url_for, redirect, send_file @@ -97,14 +97,13 @@ class ListAPI(MicroscopeView): :