Browse Source

automated change using python-modernize: fix methodattrs

pull/734/head
Thomas Waldmann 12 years ago
parent
commit
b8b769ad41
  1. 2
      flask/app.py

2
flask/app.py

@ -590,7 +590,7 @@ class Flask(_PackageBoundObject):
# Hack to support the init_jinja_globals method which is supported # Hack to support the init_jinja_globals method which is supported
# until 1.0 but has an API deficiency. # until 1.0 but has an API deficiency.
if getattr(self.init_jinja_globals, 'im_func', None) is not \ 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 from warnings import warn
warn(DeprecationWarning('This flask class uses a customized ' warn(DeprecationWarning('This flask class uses a customized '
'init_jinja_globals() method which is deprecated. ' 'init_jinja_globals() method which is deprecated. '

Loading…
Cancel
Save