Skip to content

Commit e46fabc

Browse files
author
Sylvain MARIE
committed
Fixed DeprecationWarning. Fixed #35
1 parent b4a8608 commit e46fabc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

autoclass/autodict_.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
from collections import Mapping
1+
try:
2+
from collections.abc import Mapping
3+
except ImportError:
4+
from collections import Mapping
5+
26
from itertools import chain
37
from warnings import warn
48

0 commit comments

Comments
 (0)