forked from orbit-oss/flask
Merge pull request #1510 from ThiefMaster/remove-modules-property
Remove the deprecated Flask.modules property
This commit is contained in:
commit
595fb7e1fa
1 changed files with 0 additions and 7 deletions
|
|
@ -1963,13 +1963,6 @@ class Flask(_PackageBoundObject):
|
||||||
error = None
|
error = None
|
||||||
ctx.auto_pop(error)
|
ctx.auto_pop(error)
|
||||||
|
|
||||||
@property
|
|
||||||
def modules(self):
|
|
||||||
from warnings import warn
|
|
||||||
warn(DeprecationWarning('Flask.modules is deprecated, use '
|
|
||||||
'Flask.blueprints instead'), stacklevel=2)
|
|
||||||
return self.blueprints
|
|
||||||
|
|
||||||
def __call__(self, environ, start_response):
|
def __call__(self, environ, start_response):
|
||||||
"""Shortcut for :attr:`wsgi_app`."""
|
"""Shortcut for :attr:`wsgi_app`."""
|
||||||
return self.wsgi_app(environ, start_response)
|
return self.wsgi_app(environ, start_response)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue