Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
The lxml treewalker throws an IndexError if given an empty list.
This is a problem because with the lxml TreeBuilder parseFragment will produce an empty list for an empty input string, making spacial handling necessary compared to other tree types.
Demonstration of the bug.