[Python-Dev] base64 -- should b64encode introduce line breaks? (original) (raw)

Barry Warsaw barry at python.org
Fri Sep 14 21:54:23 CEST 2007


-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

On Sep 14, 2007, at 3:20 PM, Bill Janssen wrote:

I think that's probably right. I just added the PEM line-wrapping to the code in the ssl module. Though I hate to keep adding line-wrapping code here and there... Perhaps just adding a utility function, wraplines(), or some such to the module would suffice.

Does anything in textwrap already do the trick? If not, that might
be the best place to refactor similar code to.

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin)

iQCVAwUBRurm8HEjvBPtnXfVAQIGFwP9G/hYbZ/cR7n9X4NtKATFqm/Mp+q8SH3b jFUEuvf/y0/0Ri6aKpC9QJzLNg+ZlgthmaYNRT488SXPplbB4mtysFbJg+A9x3d3 fi4rkqXnrvJt6Msqbti7wt6sGYZRisDveztuKM5Sh8t+die+55e3bZg7ght6Vyuk +N6V9lg2/3A= =iknB -----END PGP SIGNATURE-----



More information about the Python-Dev mailing list