From 69364f65d3d9604de70c9f4673ce6f87a48844d3 Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Tue, 24 Jul 2018 16:57:29 +0300 Subject: [PATCH] Fix linter errors --- certbot-apache/certbot_apache/parser.py | 2 +- certbot-apache/certbot_apache/tests/parser_test.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/certbot-apache/certbot_apache/parser.py b/certbot-apache/certbot_apache/parser.py index 372cd4ac1..6a33018b6 100644 --- a/certbot-apache/certbot_apache/parser.py +++ b/certbot-apache/certbot_apache/parser.py @@ -729,7 +729,7 @@ class ApacheParser(object): def _fix_path(self, old, new): """Helper function to add index to Augeas path if required""" - index_re = "\[\d*\]" + index_re = r"\[\d*\]" if old == new: return old if re.search(index_re, old): diff --git a/certbot-apache/certbot_apache/tests/parser_test.py b/certbot-apache/certbot_apache/tests/parser_test.py index 9faf18c06..7574ec84d 100644 --- a/certbot-apache/certbot_apache/tests/parser_test.py +++ b/certbot-apache/certbot_apache/tests/parser_test.py @@ -12,6 +12,7 @@ from certbot_apache.tests import util class BasicParserTest(util.ParserTest): + # pylint: disable=too-many-public-methods """Apache Parser Test.""" def setUp(self): # pylint: disable=arguments-differ