intelligent-agent / redeem

Firmware for Replicape
http://wiki.thing-printer.com/index.php?title=Redeem
GNU General Public License v3.0
36 stars 44 forks source link

python 2/3 support : iteritems and xrange #32

Closed ajmirsky closed 6 years ago

ajmirsky commented 6 years ago

while python 2.7 is still going to be supported for another 2 years, there are python 3 features that could help in development. most python 3 changes can be made in a backwards compatible way with python 2.7. smaller pull requests focusing on specific classes of changes is probably more approachable; this one focuses on migrating dictionary iteritems and xrange.

for reference:

ps >> this also includes changes from previous pull request. apologies. in the future, i'll keep these separate.

ajmirsky commented 6 years ago

removed merge conflicts, should be clearer now.