Skip to content

Commit

Permalink
make it py2-3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
leifj committed Feb 5, 2019
1 parent b58a594 commit cc5bf0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pyff/mdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@
from .i18n import language
from . import samlmd
import six
from cgi import escape

if six.PY2:
from cgi import escape
_ = language.ugettext
else:
from html import escape
_ = language.gettext

log = get_log(__name__)
Expand Down

0 comments on commit cc5bf0e

Please sign in to comment.