summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-09-26 14:08:17 +0200
committerMartin Basti <mbasti@redhat.com>2016-09-27 13:35:58 +0200
commit0f88f8fe889ae4801fc8d5ece1ad51c5246718ac (patch)
tree4f38fb6210abaa9f354353df2abda96d1b8fb612 /ipalib
parent452b08754d02b89c0e3117b83d9156e6110943c9 (diff)
downloadfreeipa-0f88f8fe889ae4801fc8d5ece1ad51c5246718ac.tar.gz
freeipa-0f88f8fe889ae4801fc8d5ece1ad51c5246718ac.tar.xz
freeipa-0f88f8fe889ae4801fc8d5ece1ad51c5246718ac.zip
Remove unused variables in the code
This commit removes unused variables or rename variables as "expected to be unused" by using "_" prefix. This covers only cases where fix was easy or only one unused variable was in a module Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipalib')
-rwxr-xr-xipalib/aci.py2
-rw-r--r--ipalib/cli.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/ipalib/aci.py b/ipalib/aci.py
index da082aec7..73ddc7115 100755
--- a/ipalib/aci.py
+++ b/ipalib/aci.py
@@ -103,8 +103,6 @@ class ACI(object):
lexer = shlex.shlex(aci)
lexer.wordchars = lexer.wordchars + "."
- l = []
-
var = False
op = "="
for token in lexer:
diff --git a/ipalib/cli.py b/ipalib/cli.py
index df9e6cfd2..05bc0f5c9 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -1342,7 +1342,7 @@ cli_plugins = (
def run(api):
error = None
try:
- (options, argv) = api.bootstrap_with_global_options(context='cli')
+ (_options, argv) = api.bootstrap_with_global_options(context='cli')
for klass in cli_plugins:
api.add_plugin(klass)
api.finalize()