mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 07:12:54 -04:00
Bring inheritance back
This commit is contained in:
parent
933a21ec3d
commit
6b41bee007
1 changed files with 4 additions and 3 deletions
|
|
@ -1,3 +1,4 @@
|
|||
# pylint: disable=abstract-method
|
||||
"""ParserNode interface for interacting with configuration tree.
|
||||
|
||||
General description
|
||||
|
|
@ -155,7 +156,7 @@ class ParserNode(object):
|
|||
|
||||
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
class CommentNode(object):
|
||||
class CommentNode(ParserNode):
|
||||
"""
|
||||
CommentNode class is used for representation of comments within the parsed
|
||||
configuration structure. Because of the nature of comments, it is not able
|
||||
|
|
@ -174,7 +175,7 @@ class CommentNode(object):
|
|||
|
||||
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
class DirectiveNode(object):
|
||||
class DirectiveNode(ParserNode):
|
||||
"""
|
||||
DirectiveNode class represents a configuration directive within the configuration.
|
||||
It can have zero or more parameters attached to it. Because of the nature of
|
||||
|
|
@ -208,7 +209,7 @@ class DirectiveNode(object):
|
|||
|
||||
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
class BlockNode(object):
|
||||
class BlockNode(ParserNode):
|
||||
"""
|
||||
BlockNode class represents a block of nested configuration directives, comments
|
||||
and other blocks as its children. A BlockNode can have zero or more parameters
|
||||
|
|
|
|||
Loading…
Reference in a new issue