Get rid of aiohttp deprecation warnings
If the example is run with the warning option:
python -Wd example.py
2 warnings appear:
/home/vit/Documents/dev/python/duniter-mirage/venv/lib/python3.6/site-packages/aiohttp/web_urldispatcher.py:153: DeprecationWarning: Bare functions are deprecated, use async ones
"use async ones", DeprecationWarning)
/home/vit/Documents/dev/python/duniter-mirage/venv/lib/python3.6/site-packages/aiohttp/web_app.py:227: DeprecationWarning: old-style middleware "<function middleware_factory at 0x7f27860488c8>" deprecated, see #2252
self._middlewares_handlers = tuple(self._prepare_middleware())
Code must be heavily changed to be compliant with new version (3.6.2).
See aiohttp documentation for new usage.