Skip to content

Commit

Permalink
Remove deprecated flask.ext
Browse files Browse the repository at this point in the history
  • Loading branch information
dongweiming committed Sep 21, 2018
1 parent afd736a commit 9185896
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Registration
Applications can be registered directly in the extension constructor::

from flask import Flask
from flask.ext.mako import MakoTemplates
from flask_mako import MakoTemplates

app = Flask(__name__)
mako = MakoTemplates(app)
Expand Down Expand Up @@ -97,7 +97,7 @@ as Jinja2 templates. Additionally, Mako templates receive the same context as
Jinja2 templates. This allows you to use the same variables as you normally
would (``g``, ``session``, ``url_for``, etc)::

from flask.ext.mako import render_template
from flask_mako import render_template

def hello_mako():
return render_template('hello.html', name='mako')
Expand Down
4 changes: 2 additions & 2 deletions flask_mako.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
flask.ext.mako
flask_mako
~~~~~~~~~~~~~~~~~~~~~~~
Extension implementing Mako Templates support in Flask with support for
Expand Down Expand Up @@ -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
1 change: 0 additions & 1 deletion flaskext/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name='Flask-Mako',
version='0.4',
version='0.5',
url='https://github.com/benselme/flask-mako',
license='BSD',
author='Beranger Enselme, Frank Murphy',
Expand Down
4 changes: 2 additions & 2 deletions tests/test_mako.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import flask
from flask import Flask, Blueprint, g
from flask.ext.mako import (MakoTemplates, TemplateError, render_template,
render_template_string, render_template_def)
from flask_mako import (MakoTemplates, TemplateError, render_template,
render_template_string, render_template_def)

from mako.exceptions import CompileException

Expand Down

0 comments on commit 9185896

Please # to comment.