aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2018-03-22 11:40:17 +0100
committerSimon Warta <[email protected]>2018-03-22 11:40:17 +0100
commit1b835026fb365fdd0761d0817045b9e31d1ee404 (patch)
tree5ccf0e189279d54601231b4a69adc18f80c1656f /src
parent3a9704c41a14d02a70d31be0e3288c591e547f08 (diff)
Cleanup some code style warnings in show_dependencies.py
Diffstat (limited to 'src')
-rwxr-xr-xsrc/scripts/show_dependencies.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/scripts/show_dependencies.py b/src/scripts/show_dependencies.py
index 937626a86..ca8b9e962 100755
--- a/src/scripts/show_dependencies.py
+++ b/src/scripts/show_dependencies.py
@@ -6,7 +6,7 @@ Show Botan module dependencies as a list or graph.
Requires graphviz from pip when graphical output is selected:
https://pypi.python.org/pypi/graphviz
-(C) 2015 Simon Warta (Kullo GmbH)
+(C) 2015,2018 Simon Warta (Kullo GmbH)
Botan is released under the Simplified BSD License (see license.txt)
"""
@@ -141,7 +141,7 @@ while True:
card = cartinality(all_dependencies)
# print(card)
if card == last_card:
- break;
+ break
last_card = card
add_dependency()
@@ -168,11 +168,13 @@ while True:
card = cartinality(direct_dependencies)
# print(card)
if card == last_card:
- break;
+ break
last_card = card
remove_indirect_dependencies()
def openfile(f):
+ # pylint: disable=no-member
+ # os.startfile is available on Windows only
if sys.platform.startswith('linux'):
subprocess.call(["xdg-open", f])
else:
@@ -208,4 +210,3 @@ if args.mode == "draw":
if args.verbose:
print("Opening " + filename + " ...")
openfile(filename)
-