-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix python 3 support for pull request generation. (#489)
Calling `.encode('utf-8')` on a python2 unicode object encodes it into a utf-8 str but calling it on a python3 str encodes that str into a bytes object. We want python str objects in both cases to be serialized into the distribution yaml files. To achieve that we filter the modified distribution repo dict recursively for unicode keys and values and encoding them to utf-8 strings. This also fixes some issues in the GitHub library related to Python 3.
- Loading branch information
1 parent
ad4d467
commit 9426042
Showing
2 changed files
with
31 additions
and
12 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