diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-08-31 17:54:34 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-08-31 17:54:34 +0200 |
commit | 5c90e5f2c85c028ad1e04b8621ed96d9b5d1c796 (patch) | |
tree | 596cfb1e1a5aaaecb625f94db950a643c6dba1ea | |
parent | 0fcfa307124390a89e3e6fb0217e7103e92e4dfc (diff) |
make comparison case insensitive
to work with new pts page.
-rwxr-xr-x | index.cgi | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -63,9 +63,11 @@ def parse_pts_xhtml(pts): result = searcher(tree) for r in result: - if r.text == "Changelog": + if not r.text: + continue + if r.text.lower() == "changelog": cl_url = r.attrib['href'] - elif r.text == "browse": + elif r.text.lower() == "browse": vcs_url = r.attrib['href'] parent = r.getparent() vcs = parent.getchildren()[0].text.lower() |