summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index 4139217e..5ac94061 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -54,10 +54,14 @@ import pyperclip
try:
from collections.abc import Collection
except ImportError:
- import collections.abc as abc
+
+ if six.PY3:
+ from collections.abc import Sized, Iterable, Container
+ else:
+ from collections import Sized, Iterable, Container
# noinspection PyAbstractClass
- class Collection(abc.Sized, abc.Iterable, abc.Container):
+ class Collection(Sized, Iterable, Container):
__slots__ = ()