Skip to content

Commit

Permalink
Fix import issue for Python 3.10: Sequence should be imported from co…
Browse files Browse the repository at this point in the history
…llections.abc
  • Loading branch information
Wentzell committed May 26, 2022
1 parent cb62b97 commit ab7aef2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ This document describes the main changes in maxent.

The newest version, including changes since the last release, can be obtained using ``git checkout unstable``.

Version 1.1.1
-------------

Fix an import issue for Python 3.10: Sequence should be imported from collections.abc

Version 1.1.0
-------------

Expand Down
3 changes: 2 additions & 1 deletion python/maxent_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
from .omega_meshes import DataOmegaMesh
from .alpha_meshes import DataAlphaMesh
from datetime import datetime, timedelta
from collections import Sequence, OrderedDict
from collections.abc import Sequence
from collections import OrderedDict
from itertools import product, zip_longest
import copy
from functools import wraps
Expand Down

0 comments on commit ab7aef2

Please sign in to comment.