aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2017-01-09 23:07:24 +0100
committerSimon Warta <[email protected]>2017-01-11 12:32:03 +0100
commit5ca29431436e1613a42ccc3bf54fb56ec54c6c4d (patch)
treec729e3364d6dfff5a4ce3ca29f509e3a89500703 /configure.py
parentf622eb7e68ace88ac76a0e3b394da06225ca49d7 (diff)
Resolve lint issues: unused-variable
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.py b/configure.py
index 9782ff698..5c9f9c1c2 100755
--- a/configure.py
+++ b/configure.py
@@ -1256,19 +1256,19 @@ def gen_bakefile(build_config, options):
for src in sources:
(dir, filename) = os.path.split(os.path.normpath(src))
dir = dir.replace('\\', '/')
- param, dir = dir.split('src/', 1)
+ _, dir = dir.split('src/', 1)
file.write('\tsources { src/%s/%s } \n' % (dir, filename))
def bakefile_cli_headers(file, headers):
for header in headers:
(dir, filename) = os.path.split(os.path.normpath(header))
dir = dir.replace('\\', '/')
- param, dir = dir.split('src/', 1)
+ _, dir = dir.split('src/', 1)
file.write('\theaders { src/%s/%s } \n' % (dir, filename))
def bakefile_test_sources(file, sources):
for src in sources:
- (dir, filename) = os.path.split(os.path.normpath(src))
+ (_, filename) = os.path.split(os.path.normpath(src))
file.write('\tsources { src/tests/%s } \n' %filename)
f = open('botan.bkl', 'w')
@@ -1479,7 +1479,7 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo):
def read_pem(filename):
lines = [line.rstrip() for line in open(filename)]
- for ndx, line in enumerate(lines):
+ for ndx, _ in enumerate(lines):
lines[ndx] = ''.join(('\"', lines[ndx], '\" \\', '\n'))
return ''.join(lines)
@@ -2119,7 +2119,7 @@ def main(argv=None):
options.makefile_dir = os.path.join(options.build_data, 'makefile')
def find_files_named(desired_name, in_path):
- for (dirpath, dirnames, filenames) in os.walk(in_path):
+ for (dirpath, _, filenames) in os.walk(in_path):
if desired_name in filenames:
yield os.path.join(dirpath, desired_name)