Fixes import statement in flaskr (#2068)

- `from flaskr.flaskr import app` in flaskr/__init__.py
  causes an import error with Python 2
- The relative import now used works for py2 and py3
This commit is contained in:
Kyle Lawlor 2016-10-30 09:34:49 -04:00 committed by Markus Unterwaditzer
parent 59104db2f2
commit fa087c8929
3 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ into this file, :file:`flaskr/__init__.py`:
.. sourcecode:: python
from flaskr import app
from .flaskr import app
This import statement brings the application instance into the top-level
of the application package. When it is time to run the application, the

View File

@ -1 +1 @@
from flaskr import app
from .flaskr import app

View File

@ -1,2 +1,2 @@
[aliases]
[tool:pytest]
test=pytest