summaryrefslogtreecommitdiffstats
path: root/ipaclient/ipachangeconf.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-10-04 16:54:44 +0200
committerMartin Basti <mbasti@redhat.com>2016-10-06 10:43:36 +0200
commitd9375881460d63cdd696bb0705da0ac205db9870 (patch)
tree3c7c4016f6b5ffd48f390d74003dffdf97b6a0ea /ipaclient/ipachangeconf.py
parentac94d32c4fd543e33211c0331330c80c619e0058 (diff)
downloadfreeipa-d9375881460d63cdd696bb0705da0ac205db9870.tar.gz
freeipa-d9375881460d63cdd696bb0705da0ac205db9870.tar.xz
freeipa-d9375881460d63cdd696bb0705da0ac205db9870.zip
Pylint: remove unused variables from installers and scripts
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipaclient/ipachangeconf.py')
-rw-r--r--ipaclient/ipachangeconf.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/ipaclient/ipachangeconf.py b/ipaclient/ipachangeconf.py
index b6cbc9bba..b7d8ffc33 100644
--- a/ipaclient/ipachangeconf.py
+++ b/ipaclient/ipachangeconf.py
@@ -24,8 +24,6 @@ import shutil
import six
-# pylint: disable=unused-variable
-
if six.PY3:
unicode = str
@@ -303,7 +301,7 @@ class IPAChangeConf(object):
for o in oldopts:
if o['type'] == "section" or o['type'] == "subsection":
- (num, no) = self.findOpts(newopts, o['type'], o['name'])
+ _num, no = self.findOpts(newopts, o['type'], o['name'])
if not no:
opts.append(o)
continue
@@ -327,7 +325,7 @@ class IPAChangeConf(object):
continue
if o['type'] == "option":
- (num, no) = self.findOpts(newopts, 'option', o['name'], True)
+ _num, no = self.findOpts(newopts, 'option', o['name'], True)
if not no:
opts.append(o)
continue
@@ -482,9 +480,6 @@ class IPAChangeConf(object):
# [{'name': 'foo', 'value': 'bar', 'action': 'set/comment'}]
# section is a section name like 'global'
def changeConf(self, file, newopts):
- autosection = False
- savedsection = None
- done = False
output = ""
f = None
try:
@@ -517,9 +512,6 @@ class IPAChangeConf(object):
# options is a set of dictionaries in the form:
# [{'name': 'foo', 'value': 'bar', 'action': 'set/comment'}]
def newConf(self, file, options):
- autosection = False
- savedsection = None
- done = False
output = ""
f = None
try: