Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
7dd3ef7b
Commit
7dd3ef7b
authored
Jun 03, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Older python-six from early RHEL and ubuntu do not have add_metaclass but do have with_metaclass
parent
f3ccff42
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
lib/ansible/plugins/cache/base.py
+2
-3
lib/ansible/plugins/connections/__init__.py
+2
-3
lib/ansible/plugins/inventory/__init__.py
+2
-3
No files found.
lib/ansible/plugins/cache/base.py
View file @
7dd3ef7b
...
...
@@ -20,11 +20,10 @@ __metaclass__ = type
from
abc
import
ABCMeta
,
abstractmethod
from
six
import
add
_metaclass
from
six
import
with
_metaclass
@add_metaclass
(
ABCMeta
)
class
BaseCacheModule
:
class
BaseCacheModule
(
with_metaclass
(
ABCMeta
,
object
)):
@abstractmethod
def
get
(
self
,
key
):
...
...
lib/ansible/plugins/connections/__init__.py
View file @
7dd3ef7b
...
...
@@ -22,7 +22,7 @@ __metaclass__ = type
from
abc
import
ABCMeta
,
abstractmethod
,
abstractproperty
from
six
import
add
_metaclass
from
six
import
with
_metaclass
from
ansible
import
constants
as
C
from
ansible.errors
import
AnsibleError
...
...
@@ -34,8 +34,7 @@ from ansible.utils.display import Display
__all__
=
[
'ConnectionBase'
]
@add_metaclass
(
ABCMeta
)
class
ConnectionBase
:
class
ConnectionBase
(
with_metaclass
(
ABCMeta
,
object
)):
'''
A base class for connections to contain common code.
'''
...
...
lib/ansible/plugins/inventory/__init__.py
View file @
7dd3ef7b
...
...
@@ -23,10 +23,9 @@ __metaclass__ = type
from
abc
import
ABCMeta
,
abstractmethod
from
six
import
add
_metaclass
from
six
import
with
_metaclass
@add_metaclass
(
ABCMeta
)
class
InventoryParser
:
class
InventoryParser
(
with_metaclass
(
ABCMeta
,
object
)):
'''Abstract Base Class for retrieving inventory information
Any InventoryParser functions by taking an inven_source. The caller then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment