Skip to content

Commit

Permalink
Merge cd4d482 into a1dacee
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 24, 2018
2 parents a1dacee + cd4d482 commit 151d178
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion dominate/dom_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,17 @@

import copy
import numbers
from collections import defaultdict, namedtuple, Callable
from collections import defaultdict, namedtuple
from functools import wraps
import threading

try:
# Python 3
from collections.abc import Callable
except ImportError:
# Python 2.7
from collections import Callable

try:
basestring = basestring
except NameError: # py3
Expand Down
2 changes: 1 addition & 1 deletion dominate/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def unescape(data):
'''
unescapes html entities. the opposite of escape.
'''
cc = re.compile('&(?:(?:#(\d+))|([^;]+));')
cc = re.compile(r'&(?:(?:#(\d+))|([^;]+));')

result = []
m = cc.search(data)
Expand Down

0 comments on commit 151d178

Please sign in to comment.