Skip to content

Commit

Permalink
Update parse_bytes imports to resolve deprecation warnings (#662)
Browse files Browse the repository at this point in the history
Resolves deprecation warnings such as the one below:

```python
FutureWarning: parse_bytes is deprecated and will be removed in a future release. Please use dask.utils.parse_bytes instead.
    from distributed.utils import parse_bytes
```

Authors:
  - Peter Andreas Entschev (https://github.com/pentschev)

Approvers:
  - Jacob Tomlinson (https://github.com/jacobtomlinson)

URL: #662
  • Loading branch information
pentschev authored Jun 29, 2021
1 parent 939bc26 commit 66b7795
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dask_cuda/cuda_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
from tornado.ioloop import IOLoop

import dask
from dask.utils import parse_bytes
from distributed import Nanny
from distributed.core import Server
from distributed.deploy.cluster import Cluster
from distributed.proctitle import (
enable_proctitle_on_children,
enable_proctitle_on_current,
)
from distributed.utils import parse_bytes
from distributed.worker import parse_memory_limit

from .device_host_file import DeviceHostFile
Expand Down
4 changes: 2 additions & 2 deletions dask_cuda/local_cuda_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import warnings

import dask
from dask.distributed import LocalCluster, Nanny, Worker
from distributed.utils import parse_bytes
from dask.utils import parse_bytes
from distributed import LocalCluster, Nanny, Worker
from distributed.worker import parse_memory_limit

from .device_host_file import DeviceHostFile
Expand Down
2 changes: 1 addition & 1 deletion dask_cuda/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import pynvml
import toolz

from dask.utils import parse_bytes
from distributed import Worker, wait
from distributed.utils import parse_bytes

try:
from nvtx import annotate as nvtx_annotate
Expand Down

0 comments on commit 66b7795

Please sign in to comment.