From 091ae234fc28b3be6d768ed318da47f0b12bf8f0 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 2 Feb 2021 12:13:09 +0000 Subject: [PATCH] scripts/release-notes.py: fix it up to work on Python 3. --- scripts/release-notes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release-notes.py b/scripts/release-notes.py index 08b60c0c..9ae27e77 100644 --- a/scripts/release-notes.py +++ b/scripts/release-notes.py @@ -4,13 +4,13 @@ # usage: release-notes.py 0.2.6 import sys -import urllib +import urllib.request import lxml.html 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) prefix = 'v' + sys.argv[1].replace('.', '-')