aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-04-04 17:21:55 -0400
committerMike Frysinger <vapier@gentoo.org>2015-04-04 17:21:55 -0400
commit083b5fd4a51c54dc7154c03bcdb9ce4b665e5491 (patch)
treee082a652ab476f6bc78832ac95d67c7526b3ce04
parentekeyword: change "format" to "style" to avoid pylint warning (diff)
downloadgentoolkit-083b5fd4a51c54dc7154c03bcdb9ce4b665e5491.tar.gz
gentoolkit-083b5fd4a51c54dc7154c03bcdb9ce4b665e5491.tar.bz2
gentoolkit-083b5fd4a51c54dc7154c03bcdb9ce4b665e5491.zip
ekeyword: fix unused variable warnings
-rwxr-xr-xsrc/ekeyword/ekeyword.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ekeyword/ekeyword.py b/src/ekeyword/ekeyword.py
index bc3b2cf..b0035da 100755
--- a/src/ekeyword/ekeyword.py
+++ b/src/ekeyword/ekeyword.py
@@ -227,7 +227,7 @@ def process_content(ebuild, data, ops, arch_status=None, verbose=0,
def logit(msg):
print('%s: %s' % (disp_name, msg))
elif quiet > 1:
- def logit(msg):
+ def logit(_msg):
pass
else:
# Chop the full path and the .ebuild suffix.
@@ -349,7 +349,7 @@ def load_profile_data(portdir=None, repo='gentoo'):
for line in f:
line = line.split('#', 1)[0].split()
if line:
- arch, profile, status = line
+ arch, _profile, status = line
arch_status.setdefault(arch, status)
curr_status = profile_status[arch_status[arch]]
new_status = profile_status[status]
@@ -409,7 +409,7 @@ def ignorable_arg(arg, quiet=0):
return False
-def args_to_work(args, arch_status=None, repo='gentoo', quiet=0):
+def args_to_work(args, arch_status=None, _repo='gentoo', quiet=0):
"""Process |args| into a list of work itmes (ebuild/arches to update)"""
work = []
todo_arches = []