disable pylint warnings

This commit is contained in:
James Kasten
2014-12-02 20:36:46 -08:00
parent 14c6e94c56
commit 8f9c4194bc
2 changed files with 33 additions and 33 deletions
+3 -3
View File
@@ -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
+2 -2
View File
@@ -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