Skip to content

Commit 76a4e6e

Browse files
Merge pull request #2 from hellking4u/master
Add support to Python 2.7
2 parents 3db6f9f + a7d1910 commit 76a4e6e

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-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

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
flask>=0.10.1
22
flask_script>=2.0.5
3+
functools32==3.2.3.post2

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
'Natural Language :: English',
1818
'Operating System :: OS Independent',
1919
'Programming Language :: Python',
20+
'Programming Language :: Python :: 2.7',
2021
'Programming Language :: Python :: 3',
2122
'Programming Language :: Python :: 3.2',
2223
'Programming Language :: Python :: 3.3',

0 commit comments

Comments
 (0)