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

Python upgrade3 12 #144

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ If you need access to all of information in the item, then we can go a
stage earlier in the process and override the td_contents method:

```python
from flask import Markup
from markupsafe import Markup

def td_contents(self, i, attr_list):
# by default this does
Expand Down
3 changes: 2 additions & 1 deletion examples/sortable.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from flask_table import Table, Col, LinkCol
from flask import Flask, Markup, request, url_for
from flask import Flask, request, url_for
from markupsafe import Markup

"""
A example for creating a Table that is sortable by its header
Expand Down
3 changes: 2 additions & 1 deletion flask_table/columns.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import unicode_literals

from flask import Markup, url_for
from flask import url_for
from markupsafe import Markup
from babel.dates import format_date, format_datetime
from flask_babel import gettext as _

Expand Down
2 changes: 1 addition & 1 deletion flask_table/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals
from functools import partial

from flask import Markup
from markupsafe import Markup


def element(element, attrs=None, content='',
Expand Down
2 changes: 1 addition & 1 deletion flask_table/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals
from collections import OrderedDict

from flask import Markup
from markupsafe import Markup
from flask_babel import gettext as _

from .columns import Col
Expand Down