def py2encode(s):
    return s.encode("utf-8") if PY2 and type(s) is unicode else s
Called when the maximum line length has been reached.
dataset/ETHPy150Open maebert/jrnl/jrnl/util.py/py2encode--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/protocols/basic.py/LineOnlyReceiver.lineLengthExceeded