mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-07-06 09:00:58 +02:00
32 lines
895 B
Python
32 lines
895 B
Python
![]() |
# Copyright (c), Sviatoslav Sydorenko <ssydoren@redhat.com> 2018
|
||
|
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
|
||
|
"""Collections ABC import shim.
|
||
|
|
||
|
This module is intended only for internal use.
|
||
|
It will go away once the bundled copy of six includes equivalent functionality.
|
||
|
Third parties should not use this.
|
||
|
"""
|
||
|
|
||
|
from __future__ import absolute_import, division, print_function
|
||
|
__metaclass__ = type
|
||
|
|
||
|
|
||
|
try:
|
||
|
"""Python 3.3+ branch."""
|
||
|
from collections.abc import (
|
||
|
KeysView,
|
||
|
Mapping, MutableMapping,
|
||
|
Sequence, MutableSequence,
|
||
|
Set, MutableSet,
|
||
|
Iterable,
|
||
|
)
|
||
|
except ImportError:
|
||
|
"""Use old lib location under 2.6-3.2."""
|
||
|
from collections import (
|
||
|
KeysView,
|
||
|
Mapping, MutableMapping,
|
||
|
Sequence, MutableSequence,
|
||
|
Set, MutableSet,
|
||
|
Iterable,
|
||
|
)
|