Python 2.4 is not supported (uses ternary 'a if x else b' syntax).
Correct tabs to spaces.
Assume 4 spaces per tab instead of the implicit 8 spaces per tab. This change will specifically enable code at ofxparse.py line 353 that was previously disabled.
This code causes test failures, so revert it to the previous behavior
Use six for Python 3 compatibility rather than relying on 2to3 at build time
Need StringIO to handle unicode properly
Better test for iterability on Python 3
Use six for 'iteritems'
Only decode decodable strings
More work on codecs
Move fh tests to init
Extract saving of the fh position
Extract method 'handle_encoding'
Re-organize handle_encoding to assume bytes for input and do simple decoding of headers as ASCII in order to ascertain the encoding.
Replace NONE values after decoding the headers
Use BytesIO instead of cStringIO
Fix test on Python 3
Open files as binary
Fix more test failures due to testing against str type
Fix two more failing tests
Use setup.py test in Travis runner

--HG--
extra : source : 5a2dba9fcc9904f90a32dabc1c95f4c6efd9bf35