Skip to content

Commit 9866d3a

Browse files
yileiMagenta Team
authored andcommitted
Make this code compatible with Python 3.10.
PiperOrigin-RevId: 474162831
1 parent a4b1505 commit 9866d3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ddsp/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
"""Library of functions for differentiable digital signal processing (DDSP)."""
1616

17-
import collections
17+
from collections import abc
1818
import copy
1919
from typing import Any, Dict, Optional, Sequence, Text, TypeVar
2020

@@ -44,7 +44,7 @@ def make_iterable(x):
4444
# Wrap in list so you don't iterate over the batch.
4545
return [x]
4646
else:
47-
return x if isinstance(x, collections.Iterable) else [x]
47+
return x if isinstance(x, abc.Iterable) else [x]
4848

4949

5050
def to_dict(x, keys):

0 commit comments

Comments
 (0)