aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-08-04 16:32:04 -0400
committerJack Lloyd <[email protected]>2019-08-04 16:32:04 -0400
commitc4ee3ce67906c1e3aa2f03079c32c7687486ad2c (patch)
tree6eb6d50f552d9f2011dac44ef8e1556ace28d04d /src/scripts
parentdf31111d6db8f7a2a494511036701b583d2c8340 (diff)
Fix for Python3
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/oids.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/scripts/oids.py b/src/scripts/oids.py
index f303f1f7e..5e8368980 100755
--- a/src/scripts/oids.py
+++ b/src/scripts/oids.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/python
"""
(C) 2016 Jack Lloyd
@@ -293,7 +293,7 @@ def main(args = None):
nam = match.group(2)
if oid in str2oid:
- print "Duplicated OID", oid, name, oid2str[oid]
+ print("Duplicated OID", oid, name, oid2str[oid])
sys.exit() # hard error
else:
oid2str[oid] = nam
@@ -310,18 +310,17 @@ def main(args = None):
sig2pads[pad_match.group(1)].add(pad_match.group(2))
if nam in str2oid:
- #print "Duplicated name", nam, oid, str2oid[nam]
#str2oid[nam] = oid
pass
else:
str2oid[nam] = oid
if args[1] == "oids":
- print format_as_map(oid2str, str2oid)
+ print(format_as_map(oid2str, str2oid))
elif args[1] == "dn_ub":
- print format_dn_ub_as_map(dn_ub,oid2str)
+ print(format_dn_ub_as_map(dn_ub,oid2str))
elif args[1] == "pads":
- print format_pads_as_map(sig2pads)
+ print(format_pads_as_map(sig2pads))
return 0