tempodb / tempodb-python

Python client for TempoDB
MIT License
28 stars 19 forks source link

Py3k and Py2k cross compat #41

Closed ixmatus closed 10 years ago

ixmatus commented 10 years ago

This pull-request introduces the six package to make TempoDB cross compatible between python 2.x and python 3.x.

All tests for python 2.x pass; very few pass for python 3.x due to dictionary ordering when JSON encoding. The assertion tests test for string equality and if the dicts aren't in the same order (they are never guaranteed to be because it's an unordered data type) the tests will fail.

ixmatus commented 10 years ago

Weird, I'll make another pull-request, should've had the latest...