Skip to content

Commit 75785c7

Browse files
committed
use syntax rather than
1 parent a14726c commit 75785c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dash/development/base_component.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import abc
22
import inspect
33
import sys
4-
try:
5-
from collections.abc import MutableSequence
6-
except ImportError:
7-
from collections import MutableSequence
8-
94
import six
105

6+
if six.PY2:
7+
from collections import MutableSequence
8+
else:
9+
from collections.abc import MutableSequence
10+
1111
from .._utils import patch_collections_abc
1212

1313

0 commit comments

Comments
 (0)