Merge python2 and python3 source trees
Josh Friend
Branch: joshfriend/aniso8601:compat
Branch: nielsenb/aniso8601:master
Merged
Merged pull request
Merged in joshfriend/aniso8601/compat (pull request #5)
Merged in joshfriend/aniso8601/compat (pull request #5)
I was curious about how different the
python2
andpython3
sources were so I did a diff and found they were nearly identical. The only difference I noticed was relative imports andxrange
vsrange
. To me, this feels redundant so I thought I would try to fix it. Other libraries, like Werkzeug, have a compatibility module that is used to achieve python2/3 compatibility without an external dependency likesix
.I created a small
compat
module and merge thepython2
andpython3
source.