summaryrefslogtreecommitdiffstats
path: root/contrib/RHEL4/ipachangeconf.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-12-16 23:43:09 +0100
committerJan Cholasta <jcholast@redhat.com>2015-12-23 07:59:22 +0100
commit1f6b1c2de78af51fc746e1da86065f6a265423ff (patch)
tree5e5a1394fc98885fbf2f7062e77ace49b1a587ec /contrib/RHEL4/ipachangeconf.py
parent89e16a8053293eac2ab0fcff9ea073a18b453381 (diff)
downloadfreeipa-1f6b1c2de78af51fc746e1da86065f6a265423ff.tar.gz
freeipa-1f6b1c2de78af51fc746e1da86065f6a265423ff.tar.xz
freeipa-1f6b1c2de78af51fc746e1da86065f6a265423ff.zip
Enable pylint trailing-whitespace check
Enables check and fixes: ************* Module ipapython.log_manager ipapython/log_manager.py:808: [C0303(trailing-whitespace), ] Trailing whitespace) ************* Module ipachangeconf contrib/RHEL4/ipachangeconf.py:28: [C0303(trailing-whitespace), ] Trailing whitespace) contrib/RHEL4/ipachangeconf.py:116: [C0303(trailing-whitespace), ] Trailing whitespace) ************* Module ipalib.plugins.pwpolicy ipalib/plugins/pwpolicy.py:174: [C0303(trailing-whitespace), ] Trailing whitespace) ipalib/plugins/pwpolicy.py:180: [C0303(trailing-whitespace), ] Trailing whitespace) Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'contrib/RHEL4/ipachangeconf.py')
-rw-r--r--contrib/RHEL4/ipachangeconf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/RHEL4/ipachangeconf.py b/contrib/RHEL4/ipachangeconf.py
index e0712a1a5..e3432a0fc 100644
--- a/contrib/RHEL4/ipachangeconf.py
+++ b/contrib/RHEL4/ipachangeconf.py
@@ -25,7 +25,7 @@ def openLocked(filename, perms):
fd = -1
try:
fd = os.open(filename, os.O_RDWR | os.O_CREAT, perms)
-
+
fcntl.lockf(fd, fcntl.LOCK_EX)
except OSError as e:
if fd != -1:
@@ -113,7 +113,7 @@ class IPAChangeConf:
return False
if not cl.endswith(self.sectnamdel[1]):
return False
- return cl[len(self.sectnamdel[0]):-len(self.sectnamdel[1])]
+ return cl[len(self.sectnamdel[0]):-len(self.sectnamdel[1])]
def matchSubSection(self, line):
if self.matchComment(line):