From 34ecad1d04c6b3add8077315bac1f954002fb7da Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 23 Dec 2016 14:23:16 -0500 Subject: Trac markup changed, update kludgy screen scraping code to match. --- https-sync-repos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'https-sync-repos.py') diff --git a/https-sync-repos.py b/https-sync-repos.py index ff1dd90..4b4c735 100755 --- a/https-sync-repos.py +++ b/https-sync-repos.py @@ -18,7 +18,7 @@ head = "https://git.cryptech.is/" tail = ".git" errs = 0 -for elt in ElementTree(file = urlopen(trac_page)).iter("{http://www.w3.org/1999/xhtml}tt"): +for elt in ElementTree(file = urlopen(trac_page)).iter("{http://www.w3.org/1999/xhtml}code"): if elt.text.startswith(head) and elt.text.endswith(tail): url = elt.text repo = url[len(head):-len(tail)] -- cgit v1.2.3