mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-18 10:50:40 +00:00
32 lines
521 B
Python
32 lines
521 B
Python
|
from six import string_types
|
||
|
|
||
|
|
||
|
# enum compat
|
||
|
try:
|
||
|
from enum import Enum
|
||
|
except:
|
||
|
class Enum(object): pass
|
||
|
# no objects will be instances of this class
|
||
|
|
||
|
# collections compat
|
||
|
try:
|
||
|
from collections.abc import (
|
||
|
Container,
|
||
|
Hashable,
|
||
|
Iterable,
|
||
|
Mapping,
|
||
|
Sequence,
|
||
|
Set,
|
||
|
Sized,
|
||
|
)
|
||
|
except ImportError:
|
||
|
from collections import (
|
||
|
Container,
|
||
|
Hashable,
|
||
|
Iterable,
|
||
|
Mapping,
|
||
|
Sequence,
|
||
|
Set,
|
||
|
Sized,
|
||
|
)
|