spaceone / httoop

HTTOOP - a fully object oriented HTTP protocol library written in python
MIT License
18 stars 5 forks source link

Add Python3.5 support #1

Closed spaceone closed 4 years ago

spaceone commented 9 years ago

"bytes" doesn't support %s syntax or .format() method. It is readded in python3.5. Maybe py2to3 helps.

spaceone commented 9 years ago

A spintf() function could be added to util.py.

spaceone commented 7 years ago

ur'foo' → SyntaxError on python3.6

spaceone commented 7 years ago

b'' % '' → TypeError b'%s' % (0.0,) → TypeError {'':''}[b''] → KeyError rb'' → SyntaxError in python2

spaceone commented 7 years ago

__metaclass__ not supported anymore

spaceone commented 7 years ago

The implementation started with https://github.com/spaceone/httoop/commit/5587a26efa4268f07527c48e11e6814b6ead3c94 and has a lot of failing tests.

spaceone commented 5 years ago

https://docs.python.org/3/howto/pyporting.html

spaceone commented 5 years ago

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.

spaceone commented 4 years ago

httoop now supports Python 3. All tests are passing: 12004 passed, 8 skipped, 118 xfailed, 15 xpassed in 41.60 seconds