opendns / pyinvestigate

Python module to interface with the OpenDNS Investigate API
MIT License
62 stars 31 forks source link

Make the library compatible with both Python2.x and Python3.x #21

Closed huyphan closed 6 years ago

huyphan commented 6 years ago

Update syntax and make use of future package to make the library compatible with both Python2.x and Python 3.x.

I ran the test with pytest on Python2.7 and Python3.6, all the test cases passed except test_sample and test_sample_artifacts as my API key doesn't have access to artifact data.

I've also updated the version of this library to 1.4.0. I think that is necessary as this change introduces support for new Python version.

joshwertheim commented 6 years ago

@huyphan thanks for contributing! Going to merge your changes in and submit the new version to PyPi.