def csv_encode(s):
        return as_unicode(s).encode('utf-8')

    # Helpers
Returns byte string expected by Python 2's csv module
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/_compat.py/csv_encode