scripts/release-notes.py: fix it up to work on Python 3.

dmw
David Wilson 4 years ago
parent 59716a8788
commit 091ae234fc

@ -4,13 +4,13 @@
# usage: release-notes.py 0.2.6 # usage: release-notes.py 0.2.6
import sys import sys
import urllib import urllib.request
import lxml.html import lxml.html
import subprocess import subprocess
response = urllib.urlopen('https://mitogen.networkgenomics.com/changelog.html') response = urllib.request.urlopen('https://mitogen.networkgenomics.com/changelog.html')
tree = lxml.html.parse(response) tree = lxml.html.parse(response)
prefix = 'v' + sys.argv[1].replace('.', '-') prefix = 'v' + sys.argv[1].replace('.', '-')

Loading…
Cancel
Save