Skip to content

Commit

Permalink
silence import warning (#2635)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed Dec 28, 2018
1 parent 85ded91 commit bc5558e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xarray/core/indexing.py
Expand Up @@ -2,7 +2,7 @@

import functools
import operator
from collections import Hashable, defaultdict
from collections import defaultdict
from datetime import timedelta

import numpy as np
Expand All @@ -13,6 +13,11 @@
dask_array_type, integer_types, iteritems, range, suppress)
from .utils import is_dict_like

try:
from collections.abc import Hashable
except ImportError: # Py2
from collections import Hashable


def expanded_indexer(key, ndim):
"""Given a key for indexing an ndarray, return an equivalent key which is a
Expand Down

0 comments on commit bc5558e

Please sign in to comment.