Skip to content

Commit 9550021

Browse files
committed
Added support for Python 2.7
1 parent 3db6f9f commit 9550021

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

example/manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from example.views import app
1+
from views import app
22
from flask_apidoc.commands import GenerateApiDoc
33
from flask_script import Manager
44

flask_apidoc/apidoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import mimetypes
1717

1818
from flask import request
19-
from functools import lru_cache
19+
from functools32 import lru_cache
2020
from os.path import join, getmtime, getsize
2121
from werkzeug.datastructures import Headers
2222

flask_apidoc/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class GenerateApiDoc(Command):
3030
"""
3131

3232
def __init__(self, input_path=None, output_path=None, template_path=None):
33-
super().__init__()
33+
super(Command, self).__init__()
3434
self.input_path = input_path
3535
self.output_path = output_path or 'static/docs'
3636
self.template_path = template_path

0 commit comments

Comments
 (0)