Skip to content

Commit

Permalink
Resturcture ABCs import from collections module (#2106)
Browse files Browse the repository at this point in the history
Resturcture ABCs import from collections
  • Loading branch information
blackbird7112 authored Aug 2, 2022
1 parent b1a5fee commit 406fdbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tardis/io/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import pandas as pd
import numpy as np
import collections
import collections.abc as collections_abc
from collections import OrderedDict

import yaml
Expand Down Expand Up @@ -155,11 +155,11 @@ def traverse_configs(base, other, func, *args):
args :
Arguments passed into `func`
"""
if isinstance(base, collections.Mapping):
if isinstance(base, collections_abc.Mapping):
for k in base:
traverse_configs(base[k], other[k], func, *args)
elif (
isinstance(base, collections.Iterable)
isinstance(base, collections_abc.Iterable)
and not isinstance(base, basestring)
and not hasattr(base, "shape")
):
Expand Down

0 comments on commit 406fdbc

Please sign in to comment.