Codebase list python-calmjs.parse / 00a2d6f
Fix deprecation warning for Python 3.7 - Done so while still retaining 2.7 support. Fixes #31 Tommy Yu 4 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
33 """
44
55 from itertools import chain
6 from collections import Iterable
6 try:
7 from collections.abc import Iterable
8 except ImportError: # pragma: no cover
9 from collections import Iterable
710 from calmjs.parse.asttypes import Node
811 from calmjs.parse import sourcemap
912 from calmjs.parse.exceptions import ECMASyntaxError