Skip to content

Commit 376e41c

Browse files
timgates42burnash
authored andcommitted
Support old and new collections.abc.Sequence (#745)
Addresses #744
1 parent f251def commit 376e41c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

gspread/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
import sys
1212
import re
1313
from functools import wraps
14-
from collections import defaultdict, Sequence
14+
from collections import defaultdict
15+
try:
16+
from collections.abc import Sequence
17+
except ImportError:
18+
from collections import Sequence
1519
from itertools import chain
1620

1721
from .exceptions import IncorrectCellLabel, NoValidUrlKeyFound

0 commit comments

Comments
 (0)