view roundup/anypy/__init__.py @ 4521:abd2db0a159a

Fix StringIO issue2550713: - io.StringIO in newer versions of python returns unicode strings and expects a unicode string in the constructor. Unfortunately csv doesn't handle unicode (yet). So we need to use a BytesIO which gets the utf-8 string from the web-interface. Compatibility for old versions by using Stringio.Stringio for emulating a io.BytesIO also works. - We didn't have a regression test for the EditCSVAction
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Fri, 15 Jul 2011 12:36:47 +0000
parents eddb82d0964c
children 9ba03348f923
line wrap: on
line source

"""
roundup.anypy - compatibility layer for any Python 2.3+
"""
VERSION = '.'.join(map(str,
                       (0,
                        1,  # hashlib_, sets_
                        )))

Roundup Issue Tracker: http://roundup-tracker.org/