Skip to content

Commit

Permalink
Put extra check in for import escape from html or cgi depending on py…
Browse files Browse the repository at this point in the history
…thon version. Bump recipe
  • Loading branch information
gb119 committed Apr 12, 2020
1 parent 1c69cc3 commit f6fb64d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Stoner/tools.py
Expand Up @@ -32,9 +32,13 @@
import copy

from numpy import log10, floor, abs, logical_and, isnan, round, ndarray, dtype # pylint: disable=redefined-builtin
from html import escape as html_escape
from copy import deepcopy

try:
from html import escape as html_escape
except ImportError:
from cgi import escape as html_escape

operator = {
"eq": lambda k, v: k == v,
"ne": lambda k, v: k != v,
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Expand Up @@ -4,7 +4,7 @@

package:
name: '{{ name|lower }}'
version: '0.9.5'
version: '0.9.6'

source:
git_tag: master
Expand Down

0 comments on commit f6fb64d

Please sign in to comment.