Commit 3e50aad
committed
Don't rely on the ElementTree Comment factory being the tag attribute on Comments.
This is needed for xml.etree.cElementTree under 2.6 (and likely hence custom
installs of cElementTree 1.2), where the tag property is equal to
xml.etree.ElementTree.Comment (i.e., the pure Python version).
Similarly, don't rely on type(comment.tag), as this is just function!1 parent 4e06f37 commit 3e50aad
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
210 | | - | |
| 211 | + | |
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
| |||
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
278 | | - | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
| |||
0 commit comments