Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the return type of escape to Markup
This patch fixes the return type of escape to always be Markup. It addresses the issue with custom class that implements the __html__ method - see issue #68. A new test case, test_escape_return_type, is added to test the behavior.
- Loading branch information
1 parent
d2a40c4
commit dc5a6bb
Showing
3 changed files
with
12 additions
and
2 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