bartdag/py4j — pull request #110 by JoshRosen (2012-10-28 20:53:47+00:00)
Title: Remove line wrapping from base64 encoder

The previous base64-encoding method inserted line breaks every 76 characters, causing some encoded byte arrays to be split across multiple lines. This caused problems when decoding function arguments in Java, since arguments are not expected to span multiple lines (see #109).

This change uses `standard_b64encode`, which does not insert line breaks; `standard_b64encode` is compatibile with both Python 2.6 and Python 3.

I also fixed a Python 3 incompatibility that I introduced in `setup.py`.