Skip to content

Commit 60c09e0

Browse files
committed
try frozenset in _base.py too
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40470
1 parent a792a87 commit 60c09e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/treebuilders/_base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
from constants import scopingElements, tableInsertModeElements
2+
try:
3+
frozenset
4+
except NameError:
5+
# Import from the sets module for python 2.3
6+
from sets import Set as set
7+
from sets import ImmutableSet as frozenset
28

39
# The scope markers are inserted when entering buttons, object elements,
410
# marquees, table cells, and table captions, and are used to prevent formatting

0 commit comments

Comments
 (0)