File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import string
22
33try :
4+ type (frozenset )
5+ except NameError :
6+ #Import from the sets module for python 2.3
7+ from sets import Set as set
48 from sets import ImmutableSet as frozenset
5- except :
6- pass
79
810EOF = None
911
127129digits = frozenset (string .digits )
128130hexDigits = frozenset (string .hexdigits )
129131
130- headingElements = frozenset ((
132+ #Heading elements need to be ordered
133+ headingElements = (
131134 "h1" ,
132135 "h2" ,
133136 "h3" ,
134137 "h4" ,
135138 "h5" ,
136139 "h6"
137- ))
140+ )
138141
139142# XXX What about event-source and command?
140143voidElements = frozenset ((
Original file line number Diff line number Diff line change 11try :
2+ type (frozenset )
3+ except NameError :
4+ #Import from the sets module for python 2.3
5+ from sets import Set as set
26 from sets import ImmutableSet as frozenset
3- except :
4- pass
57
68from constants import contentModelFlags , spaceCharacters
79from constants import entitiesWindows1252 , entities , voidElements
Original file line number Diff line number Diff line change 11try :
2+ type (frozenset )
3+ except NameError :
4+ #Import from the sets module for python 2.3
5+ from sets import Set as set
26 from sets import ImmutableSet as frozenset
3- except :
4- pass
57
68class MethodDispatcher (dict ):
79 """Dict with 2 special properties:
You can’t perform that action at this time.
0 commit comments