Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed ExtDeprecationWarning caused by Flask extension import #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flask_mako.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
except ImportError:
from flask import _request_ctx_stack as stack

from werkzeug.debug.tbtools import Traceback, Frame, Line
from werkzeug.debug.tbtools import DebugTraceback as Traceback, DebugFrameSummary as Frame

from mako.lookup import TemplateLookup
from mako.template import Template
Expand All @@ -32,7 +32,7 @@

itervalues = getattr(dict, 'itervalues', dict.values)

_BABEL_IMPORTS = 'from flask.ext.babel import gettext as _, ngettext, ' \
_BABEL_IMPORTS = 'from flask_babel import gettext as _, ngettext, ' \
'pgettext, npgettext'
_FLASK_IMPORTS = 'from flask.helpers import url_for, get_flashed_messages'

Expand Down