aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkhil Batra <akhil.batra@research.iiit.ac.in>2017-01-07 13:18:49 +0530
committerAkhil Batra <akhil.batra@research.iiit.ac.in>2017-01-07 19:47:12 +0530
commitcca988890e67c0a87becd925b9baff11d416c6a5 (patch)
tree755dbf8c4efc7bb25a45713b5dd44d0110cc9b22
parent0dbc16c41646cbec79b65ec2ac60b8965cd22db9 (diff)
modify deprecated imports
Add description for the api specs flask.ext.xx is deprecated. need to use flask_xx instead https://github.com/pallets/flask/issues/1135 Change-Id: I9960dd44d03243bde73df8633c45ec3a1f437cea Signed-off-by: Akhil Batra <akhil.batra@research.iiit.ac.in>
-rw-r--r--qtip/api/cmd/server.py2
-rw-r--r--qtip/api/handler/job_handler.py4
-rw-r--r--qtip/api/model/job_model.py4
3 files changed, 5 insertions, 5 deletions
diff --git a/qtip/api/cmd/server.py b/qtip/api/cmd/server.py
index 852073a7..3b89af1e 100644
--- a/qtip/api/cmd/server.py
+++ b/qtip/api/cmd/server.py
@@ -13,7 +13,7 @@ from flask_restful_swagger import swagger
import qtip.api.router.mapper as mapper
app = Flask(__name__)
-api = swagger.docs(Api(app), apiVersion='0.1')
+api = swagger.docs(Api(app), apiVersion='0.1', description='QTIP API specs')
def add_routers():
diff --git a/qtip/api/handler/job_handler.py b/qtip/api/handler/job_handler.py
index f230e596..eade9df7 100644
--- a/qtip/api/handler/job_handler.py
+++ b/qtip/api/handler/job_handler.py
@@ -1,8 +1,8 @@
import threading
from copy import copy
-from flask.ext.restful import Resource, reqparse
-from flask.ext.restful_swagger import swagger
+from flask_restful import Resource, reqparse
+from flask_restful_swagger import swagger
from werkzeug.exceptions import abort
from qtip.api.handler import db, result_handler
diff --git a/qtip/api/model/job_model.py b/qtip/api/model/job_model.py
index eef771b0..f7eb9fda 100644
--- a/qtip/api/model/job_model.py
+++ b/qtip/api/model/job_model.py
@@ -1,5 +1,5 @@
-from flask.ext.restful import fields
-from flask.ext.restful_swagger import swagger
+from flask_restful import fields
+from flask_restful_swagger import swagger
@swagger.model