-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python2 and python3 differ in behavior on reading from a file that was opened with the binary flag. In python2 the read data is a str, in python3 its bytes. This is posing an issue in the asn1 calls as outlined in bug: - etingof/pyasn1#185 We can work around this for now, since pem files are always string, remove the binary flag and open pem w/o binary mode flag Additionally, python3 and python 2 differe in handling str and bytes and python3 requires more type correctness. Fix all this in a way that works with python2 and python3 Releates to bug #327 Signed-off-by: William Roberts <[email protected]>
- Loading branch information
William Roberts
committed
Nov 27, 2019
1 parent
3bdeb65
commit 2878f6b
Showing
2 changed files
with
18 additions
and
7 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