Browse Source

Merge pull request #734 from ThomasWaldmann/methodattrs

automated change using python-modernize: fix methodattrs
pull/736/head
Daniel Neuhäuser 12 years ago
parent
commit
26a9e90734
  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