mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:41:53 +02:00
disable pylint warnings
This commit is contained in:
@@ -299,8 +299,8 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
# in heirarchy via direct include
|
||||
# httpd.conf was very common as a user file in Apache 2.2
|
||||
if (os.path.isfile(self.server_root + 'httpd.conf') and
|
||||
self.find_directive(case_i("Include"),
|
||||
case_i("httpd.conf"))):
|
||||
self.find_directive(
|
||||
case_i("Include"), case_i("httpd.conf"))):
|
||||
return os.path.join(self.server_root, 'httpd.conf')
|
||||
else:
|
||||
return os.path.join(self.server_root + 'apache2.conf')
|
||||
@@ -1170,7 +1170,7 @@ LogLevel warn \n\
|
||||
|
||||
self.aug.load()
|
||||
|
||||
def restart(self, quiet=False):
|
||||
def restart(self, quiet=False): # pylint: disable=no-self-use
|
||||
"""Restarts apache server.
|
||||
|
||||
:returns: Success
|
||||
|
||||
@@ -109,7 +109,7 @@ class AugeasConfigurator(configurator.Configurator):
|
||||
self.add_to_checkpoint(CONFIG.IN_PROGRESS_DIR, save_files)
|
||||
|
||||
if title and not temporary and os.path.isdir(CONFIG.IN_PROGRESS_DIR):
|
||||
success = finalize_checkpoint(CONFIG.IN_PROGRESS_DIR, title)
|
||||
success = self._finalize_checkpoint(CONFIG.IN_PROGRESS_DIR, title)
|
||||
if not success:
|
||||
# This should never happen
|
||||
# This will be hopefully be cleaned up on the recovery
|
||||
@@ -395,7 +395,7 @@ class AugeasConfigurator(configurator.Configurator):
|
||||
return True
|
||||
|
||||
|
||||
def finalize_checkpoint(cp_dir, title):
|
||||
def _finalize_checkpoint(cp_dir, title): # pylint: disable=no-self-use
|
||||
"""Move IN_PROGRESS checkpoint to timestamped checkpoint.
|
||||
|
||||
Adds title to cp_dir CHANGES_SINCE
|
||||
|
||||
Reference in New Issue
Block a user