-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
premisrw: always return unicode in text getter
In metsrw 0.2.4 or older, premisrw was returning: - In Py2: binary (bytes) - In Py3: text (unicode) In metsrw 0.3.0, the Py2 code path was updated to explicitly use the `utf-8` codec since the default is `ascii` which is usually a problem during encoding. This commit updates the same code path again so in Py2 we also return unicode making the API more uniform.
- Loading branch information
Showing
2 changed files
with
40 additions
and
4 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