[diffoscope] 01/05: diffoscope.main: Don't shadow 'os' import.
Chris Lamb
chris at chris-lamb.co.uk
Thu Jan 11 10:59:32 CET 2018
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository diffoscope.
commit e51e801cd9f654e85a03a31b7a0407f553eaa0db
Author: Chris Lamb <lamby at debian.org>
Date: Thu Jan 11 12:36:08 2018 +0530
diffoscope.main: Don't shadow 'os' import.
---
diffoscope/main.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/diffoscope/main.py b/diffoscope/main.py
index 4868758..9ec4d60 100644
--- a/diffoscope/main.py
+++ b/diffoscope/main.py
@@ -285,12 +285,12 @@ class ListToolsAction(argparse.Action):
else:
current_os = get_current_os()
os_list = [current_os] if (current_os in OS_NAMES) else iter(OS_NAMES)
- for os in os_list:
+ for os_ in os_list:
tools = set()
- print("Available-in-{}-packages: ".format(OS_NAMES[os]), end='')
+ print("Available-in-{}-packages: ".format(OS_NAMES[os_]), end='')
for x in tool_required.all:
try:
- tools.add(EXTERNAL_TOOLS[x][os])
+ tools.add(EXTERNAL_TOOLS[x][os_])
except KeyError:
pass
print(', '.join(sorted(tools)))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list