Closed mithrandi closed 8 years ago
Hm since PEM is about convenience, I'd say that deprecating Unicode construction is not desirable.
Hmm, I guess I don't really have strong feelings either way! Reverted the deprecation.
I have no idea what the heck that Travis failure is about, but I'm pretty sure it's not my fault :grin:
yeah it was just Travis being a distributed system
Code looks OK but you’ll have to fix the docs still. Currently it says They have *no public API* except that they can be transformed using``str(obj)``into a PEM string.
which is now patently wrong. :)
Okay, pushed a change, did I miss anything else that needs to be updated?
I think all that’s missing is a link to this PR and we’re done!
Ah, yes. Added :)
Thanks!
This PR makes the PEM objects always use
bytes
internally. In addition:as_bytes
method is added for always gettingbytes
.__str__
still returns a native string as required by Python.__repr__
doesn't explode on Python 3 (fixes #23)unicode
orbytes
now works on both Py 2/3, but theunicode
path is deprecated.