From 519c497709c726926c8363e309d15f3d7e8a2b0a Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Fri, 16 Aug 2019 10:45:04 +0300 Subject: [PATCH] Smaller scope for linter exclusion and removal of metadata() --- certbot-apache/certbot_apache/interfaces.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/certbot-apache/certbot_apache/interfaces.py b/certbot-apache/certbot_apache/interfaces.py index 23fe68ba3..08b226349 100644 --- a/certbot-apache/certbot_apache/interfaces.py +++ b/certbot-apache/certbot_apache/interfaces.py @@ -1,4 +1,3 @@ -# pylint: disable=abstract-method """ParserNode interface for interacting with configuration tree. General description @@ -128,15 +127,6 @@ class ParserNode(object): filepath: str """ - @abc.abstractmethod - def metadata(self, key): - """ - Gets an element from the metadata dictionary for this ParserNode object. - - :param str key: Element key name - :returns: Requested metadata element - """ - @abc.abstractmethod def save(self, msg): """ @@ -154,7 +144,8 @@ class ParserNode(object): """ - +# Linter rule exclusion done because of https://github.com/PyCQA/pylint/issues/179 +# pylint: disable=abstract-method @six.add_metaclass(abc.ABCMeta) class CommentNode(ParserNode): """