Closed spaceone closed 4 years ago
A spintf() function could be added to util.py.
ur'foo' → SyntaxError on python3.6
b'' % '' → TypeError b'%s' % (0.0,) → TypeError {'':''}[b''] → KeyError rb'' → SyntaxError in python2
__metaclass__
not supported anymore
The implementation started with https://github.com/spaceone/httoop/commit/5587a26efa4268f07527c48e11e6814b6ead3c94 and has a lot of failing tests.
The starting here must be all test cases, especially the differences in the data types of the API (bytes / unicode) must be made explicit. Therefore a from __future__ import unicode_literals
should be added to every test case, maybe also to every module.
httoop
now supports Python 3.
All tests are passing: 12004 passed, 8 skipped, 118 xfailed, 15 xpassed in 41.60 seconds
"bytes" doesn't support %s syntax or .format() method. It is readded in python3.5. Maybe py2to3 helps.