forked fromhtml5lib/html5lib-python
- Notifications
You must be signed in to change notification settings - Fork0
Commit5decf47
authored
remove redundant list comprehension (html5lib#547)
any() accepts a generator. This will cause it to run faster because the any() returns as soon as it finds a True value.1 parent6815a54 commit5decf47
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
1006 | | - | |
| 1005 | + | |
| 1006 | + | |
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
| |||
1850 | 1850 | | |
1851 | 1851 | | |
1852 | 1852 | | |
1853 | | - | |
| 1853 | + | |
1854 | 1854 | | |
1855 | 1855 | | |
1856 | 1856 | | |
| |||
0 commit comments
Comments
(0)