Import CancelledError from asyncio, not .futures (#28511)

It's no longer in .futures in Python 3.8.0.
This commit is contained in:
Ville Skyttä 2019-11-04 01:05:01 +02:00 committed by Martin Hjelmare
parent 0768ae2dc8
commit 734e982822

View file

@ -1,6 +1,6 @@
"""Support for Bluesound devices.""" """Support for Bluesound devices."""
import asyncio import asyncio
from asyncio.futures import CancelledError from asyncio import CancelledError
from datetime import timedelta from datetime import timedelta
import logging import logging
from urllib import parse from urllib import parse