Skip to content

Commit

Permalink
Remove deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavezac committed Oct 27, 2018
1 parent fd9bfd2 commit 09ce322
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crystal/structure.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from collections import MutableSequence
from collections.abc import MutableSequence


class Structure(MutableSequence):
Expand Down
2 changes: 1 addition & 1 deletion tools/input/keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def __init__(self, keyword=None, value=None):
@property
def raw(self):
""" Returns raw value for CRYSTAL input. """
from collections import Iterable
from collections.abc import Iterable
if self.value == None:
return '' # otherwise, fails to find attribute.
if isinstance(self.value, str):
Expand Down

0 comments on commit 09ce322

Please sign in to comment.