Skip to content

Commit

Permalink
Merge pull request #283 from andyfaff/collections
Browse files Browse the repository at this point in the history
MAINT: import from collections.abc
  • Loading branch information
dfm committed Nov 28, 2018
2 parents 9d04276 + 705d18e commit 16c3f76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion emcee/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

__all__ = ["EnsembleSampler"]

from collections import Iterable
try:
from collections.abc import Iterable
except ImportError:
# for py2.7, will be an Exception in 3.8
from collections import Iterable

import numpy as np

Expand Down

0 comments on commit 16c3f76

Please sign in to comment.