Merge pull request #734 from ThomasWaldmann/methodattrs
automated change using python-modernize: fix methodattrs
This commit is contained in:
commit
26a9e90734
1 changed files with 1 additions and 1 deletions
|
|
@ -590,7 +590,7 @@ class Flask(_PackageBoundObject):
|
|||
# Hack to support the init_jinja_globals method which is supported
|
||||
# until 1.0 but has an API deficiency.
|
||||
if getattr(self.init_jinja_globals, 'im_func', None) is not \
|
||||
Flask.init_jinja_globals.im_func:
|
||||
Flask.init_jinja_globals.__func__:
|
||||
from warnings import warn
|
||||
warn(DeprecationWarning('This flask class uses a customized '
|
||||
'init_jinja_globals() method which is deprecated. '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue