Skip to content

Commit c26eb3b

Browse files
FIX Py 2.7 compatibility
1 parent 051a635 commit c26eb3b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

surfer/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from collections.abc import Sequence
1+
try:
2+
from collections.abc import Sequence
3+
except ImportError: # Py 2.7
4+
from collections import Sequence
25
from distutils.version import LooseVersion
36
import logging
47
import warnings

0 commit comments

Comments
 (0)