dgw / sopel-UnoBot

Play UNO on IRC with the help of your Sopel bot!
Other
3 stars 3 forks source link

Verify py2.7 & py3 compatibility #46

Closed dgw closed 4 years ago

dgw commented 7 years ago

The module code has some hold-overs from the pre-py3 era, like except Exception, e and the trailing print __doc__.strip() that make it incompatible with python 3. An important step for this codebase is to audit the whole thing and make sure every bit of it is cross-compatible with both python2.7 and python3.

I started looking at this thanks to #44, but wanted to open more of a tracking issue for it (rather than that one, which is more of a user-support ticket).

This OP to be updated with a checklist of issues once I've gotten a chance to complete a first pass.

Issues found and status:

dgw commented 4 years ago

Pretty sure this is resolved, actually. I've been running my bot on py3 for a year or two now, first on 3.5, then 3.8.