Skip to content

Commit a60e822

Browse files
authored
Update java.stoneg.py for python 3.10 compatability (#499)
1 parent ac78137 commit a60e822

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dropbox-sdk-java/generator/java/java.stoneg.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
import sys
1010
import types
1111

12-
from collections import defaultdict, OrderedDict, Sequence
12+
from collections import defaultdict, OrderedDict
13+
14+
if sys.version_info >= (3, 10):
15+
from collections.abc import Sequence
16+
else:
17+
from collections import Sequence
18+
1319
from contextlib import contextmanager
1420
from functools import (
1521
partial,

0 commit comments

Comments
 (0)