-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply
decode_errors
to encoding and fix _Attributes crashes (#41)
* Apply `decode_errors` to encoding as well, fixes #40 * Fix __repr__() segfault and buggy items() on _Attributes When calling attrs on a temporary instance, the tree may already be deallocated when the tag name is being retrieved, which causes a null pointer dereference. This fix doesn't really solve the problem, but at least it prevents the crash. Also fixes a bug in items() that made the method useless. Fixes #39 * Add test for unencodable strings
- Loading branch information
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters