From 1208a8d086297f55eab74fd2da9ff14b3caeec64 Mon Sep 17 00:00:00 2001 From: George Danforth Date: Mon, 10 Jul 2017 11:44:50 -0400 Subject: [PATCH 1/2] Removing irksome DeprecationWarning --- flask_autodoc/__init__.py | 2 +- tests/test_autodoc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_autodoc/__init__.py b/flask_autodoc/__init__.py index 89e047e..0538e25 100644 --- a/flask_autodoc/__init__.py +++ b/flask_autodoc/__init__.py @@ -1,3 +1,3 @@ __author__ = 'arnaud' -from flask.ext.autodoc.autodoc import Autodoc +from flask_autodoc.autodoc import Autodoc diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index e839c2f..8ae16f8 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -5,7 +5,7 @@ import os from flask import Flask -from flask.ext.autodoc import Autodoc +from flask_autodoc import Autodoc class TestAutodoc(unittest.TestCase): From 25ff668f56cf65395eeca3dfc591ee94118408ca Mon Sep 17 00:00:00 2001 From: George Danforth Date: Mon, 10 Jul 2017 11:57:52 -0400 Subject: [PATCH 2/2] Fix all references in README and examples --- README.md | 4 ++-- examples/custom/blog.py | 2 +- examples/factory/blog/doc.py | 2 +- examples/simple/blog.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ab8a42e..3770d5f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ or clone this directory and run setup: Start using Flask-Autodoc by importing it and initializing it: from flask import Flask - from flask.ext.autodoc import Autodoc + from flask_autodoc import Autodoc app = Flask(__name__) auto = Autodoc(app) @@ -127,4 +127,4 @@ and connect to [/doc/public](http://127.0.0.1:5000/doc/public) and [/doc/private ![screenshots](screenshots/screenshot00.png) -![screenshots](screenshots/screenshot01.png) \ No newline at end of file +![screenshots](screenshots/screenshot01.png) diff --git a/examples/custom/blog.py b/examples/custom/blog.py index f32436c..c71b8ac 100644 --- a/examples/custom/blog.py +++ b/examples/custom/blog.py @@ -2,7 +2,7 @@ from json import dumps from flask import Flask, redirect, request -from flask.ext.autodoc import Autodoc +from flask_autodoc import Autodoc app = Flask(__name__) diff --git a/examples/factory/blog/doc.py b/examples/factory/blog/doc.py index 17307a6..15231ea 100644 --- a/examples/factory/blog/doc.py +++ b/examples/factory/blog/doc.py @@ -1,5 +1,5 @@ from flask import Blueprint -from flask.ext.autodoc import Autodoc +from flask_autodoc import Autodoc doc = Blueprint('doc', __name__, url_prefix='/doc') diff --git a/examples/simple/blog.py b/examples/simple/blog.py index 52ca75c..548bb8b 100644 --- a/examples/simple/blog.py +++ b/examples/simple/blog.py @@ -1,7 +1,7 @@ from json import dumps from flask import Flask, redirect, request -from flask.ext.autodoc import Autodoc +from flask_autodoc import Autodoc app = Flask(__name__)