Skip to content

Commit

Permalink
use nicer syntax to handle deprecated import
Browse files Browse the repository at this point in the history
  • Loading branch information
mkcor committed Mar 29, 2019
1 parent a14726c commit 2ec84b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dash/development/base_component.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import abc
import inspect
import sys
try:
from collections.abc import MutableSequence
except ImportError:
from collections import MutableSequence

import six

from .._utils import patch_collections_abc

if six.PY2:
from collections import MutableSequence
else:
from collections.abc import MutableSequence


# pylint: disable=no-init,too-few-public-methods
class ComponentRegistry:
Expand Down

0 comments on commit 2ec84b7

Please sign in to comment.