-#! /usr/bin/python
+#! /usr/bin/python3
import json, sys
github = '--'
for names in member:
if type(names) == type({}):
- if names.has_key(u'github'):
- github = names[u'github']
+ if 'github' in names:
+ github = names['github']
elif names.find(' ') != -1:
name = names
if name and github:
- name = name.encode('ascii', 'xmlcharrefreplace')
- github = github.encode('ascii', 'xmlcharrefreplace')
if github == '--':
url = 'https://github.com/openssl'
else:
members.sort()
for m in members:
- print m
+ print(m)
-#! /usr/bin/python
+#! /usr/bin/python3
#
# Convert our XML file to a HTML file for the web page
# let's replace vulnerabilities.xsl
else:
alist[-1].append(ver)
prev = ver
- if (unicode.isdigit(ver[-1])): # First version after 1.0.1 is 1.0.1a
+ if (str.isdigit(ver[-1])): # First version after 1.0.1 is 1.0.1a
anext = ver + "a"
elif (ver[-1] == "y"):
anext = ver[:-1] + "za" # We ran out of letters once so y->za->zb....
# We need an output directory not stdout because we might write multiple files
if not options.input:
- print "needs input file"
+ print("needs input file")
parser.print_help()
exit();
else:
preface += "No vulnerabilities fixed"
-sys.stdout.write(preface.encode('utf-8'))
-
+sys.stdout.reconfigure(encoding='utf-8')
+sys.stdout.write(preface)