aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-06-19 18:13:57 -0400
committerJack Lloyd <[email protected]>2019-06-19 18:13:57 -0400
commit938563c0d287ee1234e1728c44e81be287bed4d1 (patch)
tree393060c35500c8843f67c48780f67c80398bde76 /src/scripts
parent19337fb7be51bb385df962bc389f5a13927dfa23 (diff)
Fix some LGTM issues
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/ci/lgtm.yml3
-rwxr-xr-xsrc/scripts/comba.py2
-rwxr-xr-xsrc/scripts/monty.py2
-rwxr-xr-xsrc/scripts/oids.py2
-rwxr-xr-xsrc/scripts/tls_suite_info.py2
5 files changed, 9 insertions, 2 deletions
diff --git a/src/scripts/ci/lgtm.yml b/src/scripts/ci/lgtm.yml
index 036470dd6..e5f232b85 100644
--- a/src/scripts/ci/lgtm.yml
+++ b/src/scripts/ci/lgtm.yml
@@ -1,4 +1,7 @@
+queries:
+ - exclude: cpp/fixme-comment
+
extraction:
cpp:
configure:
diff --git a/src/scripts/comba.py b/src/scripts/comba.py
index 711d1a950..309dca082 100755
--- a/src/scripts/comba.py
+++ b/src/scripts/comba.py
@@ -120,5 +120,7 @@ namespace Botan {
print("}")
+ return 0
+
if __name__ == '__main__':
sys.exit(main())
diff --git a/src/scripts/monty.py b/src/scripts/monty.py
index d3e9b5cb3..f253da3f6 100755
--- a/src/scripts/monty.py
+++ b/src/scripts/monty.py
@@ -90,6 +90,8 @@ namespace Botan {
print("}")
+ return 0
+
if __name__ == '__main__':
sys.exit(main())
diff --git a/src/scripts/oids.py b/src/scripts/oids.py
index 5cc61712a..f303f1f7e 100755
--- a/src/scripts/oids.py
+++ b/src/scripts/oids.py
@@ -270,7 +270,6 @@ def main(args = None):
str2oid = {}
dn_ub = {}
sig2pads = defaultdict(set)
- enc2pads = defaultdict(set)
cur_hdr = None
for line in oid_lines:
@@ -324,6 +323,7 @@ def main(args = None):
elif args[1] == "pads":
print format_pads_as_map(sig2pads)
+ return 0
if __name__ == '__main__':
sys.exit(main())
diff --git a/src/scripts/tls_suite_info.py b/src/scripts/tls_suite_info.py
index 0a894e0bc..21dcd7fcd 100755
--- a/src/scripts/tls_suite_info.py
+++ b/src/scripts/tls_suite_info.py
@@ -146,7 +146,7 @@ def open_input(args):
if len(args) == 1:
try:
return open('tls-parameters.txt')
- except:
+ except OSError:
pass
import urllib2