Skip to content

Commit

Permalink
Use format_bytes from dask instead of distributed (#416)
Browse files Browse the repository at this point in the history
dask/distributed#4966 deprecated
`distributed.utils.format_bytes`. We should use the version from
`dask.utils`. I didn't check the exact version of Dask it was added, but
it was >2 years ago, so I think we're OK.
  • Loading branch information
TomAugspurger authored Aug 13, 2021
1 parent a562f32 commit 4dc8138
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dask-gateway/dask_gateway/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
import aiohttp
import dask
import yarl
from dask.utils import format_bytes
from distributed import Client
from distributed.core import rpc
from distributed.security import Security
from distributed.utils import LoopRunner, format_bytes
from distributed.utils import LoopRunner

# Register gateway protocol
from . import comm
Expand Down

0 comments on commit 4dc8138

Please sign in to comment.