Comment 4 for bug 1012064

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote : Re: Parse feedback page / initial comment for branch/ppa information

In find_ppa_info(), I'd expect to see ""ppa:%s/%s" % (slug_regex, slug_regex)" on line 95 not "lp:%s/%s" % (slug_regex, slug_regex)"

I tried to give this a test, but it's not working for me:

>>> from brancher import web; import urllib
>>>
>>> html=urllib.urlopen("https://myapps.developer.ubuntu.com/dev/apps/500/feedback/")
>>> web.find_ppa_info(html)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "brancher/web.py", line 98, in find_ppa_info
    ppas = re.findall("(%s)" % "|".join(ppa_regexes), html)
  File "/usr/lib/python2.7/re.py", line 177, in findall
    return _compile(pattern, flags).findall(string)
TypeError: expected string or buffer