[releng] Port convert-to-tarballs to HTMLParser
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [releng] Port convert-to-tarballs to HTMLParser
- Date: Mon, 17 Feb 2020 23:30:15 +0000 (UTC)
commit 62c85310841e1cab8d16b1e71fdef401954f35ab
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Feb 17 16:23:06 2020 -0600
Port convert-to-tarballs to HTMLParser
SGMLParser is deprecated since python 2.6 and no longer exists in
python3.
tools/smoketesting/convert-to-tarballs.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tools/smoketesting/convert-to-tarballs.py b/tools/smoketesting/convert-to-tarballs.py
index 57cacb1..0853932 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -32,7 +32,7 @@ import signal
import subprocess
from ftplib import FTP
from xml.dom import minidom, Node
-from sgmllib import SGMLParser
+from HTMLParser import HTMLParser
import requests
import urlparse
if not hasattr(__builtins__, 'set'):
@@ -242,9 +242,9 @@ class Options:
node.nodeName + '\n')
sys.exit(1)
-class urllister(SGMLParser):
+class urllister(HTMLParser):
def reset(self):
- SGMLParser.reset(self)
+ HTMLParser.reset(self)
self.urls = []
def start_a(self, attrs):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]