aioxmpp
aioxmpp copied to clipboard
Convert code base to Python 3.5
Make use of new features in Python 3.5 and fix deprecations.
- [x] Use
asyncio.ensure_futureinstead ofasyncio.async - [ ] Use
async definstead of@asyncio.coroutine - [ ] Implement more features using
__aenter__/__aexit__ - [ ] Implement more features using
__aiter__/__anext__ - [ ] Use
loop.create_future()instead ofasyncio.Future()to create futures (this was new in 3.5.2 – so maybe we want to wait for the 3.6 change with this)
This issue will be re-bound to another milestone when it is determined when we will start requiring Python 3.5.
Re-binding this to v0.11:
- Ubuntu LTS (18.04) has Python 3.6
- Debian Stable (stretch) has Python 3.5