Merge pull request #734 from ThomasWaldmann/methodattrs

automated change using python-modernize: fix methodattrs
This commit is contained in:
Daniel Neuhäuser 2013-05-18 08:24:45 -07:00
commit 26a9e90734

View file

@ -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. '