automated change using python-modernize: fix methodattrs

This commit is contained in:
Thomas Waldmann 2013-05-18 16:39:39 +02:00
parent 521398d5e7
commit b8b769ad41

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