Skip to content

Commit a7d1910

Browse files
committed
Merge pull request #1 from hellking4u/python27_support
Python27 support
2 parents 7eddb75 + 145633e commit a7d1910

File tree

4 files changed

+4
-3
lines changed

4 files changed

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

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)