This PR contains a series of compatibility changes that allow for relatively similar behaviour between Python 2 and 3.
Primarily this takes the form of fixes for division and rounding, as well as differing imports. Two utility functions have been added to accommodate this: round() (to ensure matching rounding operations between Python versions) and isPy3() (in lieu of adding the whole of the Six library for that check).
This PR contains a series of compatibility changes that allow for relatively similar behaviour between Python 2 and 3.
Primarily this takes the form of fixes for division and rounding, as well as differing imports. Two utility functions have been added to accommodate this:
round()
(to ensure matching rounding operations between Python versions) andisPy3()
(in lieu of adding the whole of theSix
library for that check).