Antoine Pitrou added the comment: > It feels a bit strange to treat PEM certs as binary data, especially > since the SSL module treats PEM as ASCII unicode. For example > DER_cert_to_PEM_cert() accepts bytes and returns str, > PEM_cert_to_DER_cert() converts str to bytes.
I agree that PEM is logically text (i.e. unicode). Also, having the unicode == PEM, bytes == DER distinction sounds reasonably practical. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16487> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com