Commit 0bb2f49
committed
Check for None & len() of ET.Element instead of bool()
The bool() of ET.Element is discouraged from being used, see:
python/cpython#831221 parent d8bfd45 commit 0bb2f49
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments