-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make FSImage.__str__ available in Python 3 (#282)
* make FSImage.__str__ available in Python 3 In both Python 2 and 3, the tag() method returns the respective str type, so the result can always be used for __str__. Without having this method available in Python 3, the image tag cannot be included, for example, in Chamaeleon page templates by simply accessing the image object, as that uses i18n which in turn casts the object to the respective text (unicode) type. Not implementing __str__ in Python 3 results in the object representation instead of the tag in that case.
- Loading branch information
Showing
3 changed files
with
13 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