Add Python 2/3 compatibility ==== Tech Notes ==== This allows the main bus, skills and cli to be run in both python 2.7 and 3.5+. Mainly trivial changes - syntax for exceptions - logic for importing correct Queue module - .iteritems -> future.utils.iteritems when accessing dicts key value pairs * Allow audio service to be run in python 3 * Make speech client work with python 3 * Importing of Queue version dependent * Exception syntax corrected * Creating sound buffer is version dependant - Adapt context use range from builtins - Use compatible next() instead of .next() when walking the skill directory * Make CLI Python 3 Compatible - Use compatible BytesIO instead of StringsIO - Open files as text instead of binary - Make sure integer divisions are used * Make messagebus send compatible * Fix failing travis Re-add future 0.16.0 * Make string checks compatible * basestring doesn't exist in python 3 so it's imported from the "past" * Fix latest compatibility issues in speech client - handle urllib - handle encoding before calling md5 * Make Api.build_json() python 2/3 compatible |
||
---|---|---|
.. | ||
__init__.py | ||
main.py | ||
ws.py |