To avoid parsing bug pages twice when using the 'upstream' option and to
fix this issue we should commit this patch to 'main'.

Example:
bl1 = BugList(_Struct(url = 
'https://bugs.launchpad.net/ubuntu/+source/bughelper/+bugs', upstream = None, 
tag=None, minbug = None, filterbug = None, status = '', importance = '', 
closed_bugs=None, duplicates = None, lastcomment = None)).bugs
            
bl2 = BugList(_Struct(url = 
'https://bugs.launchpad.net/ubuntu/+source/bughelper/+bugs', upstream = None, 
tag=None, minbug = None, filterbug = None, status = '', importance = '', 
closed_bugs=None, duplicates = None, lastcomment = None)).bugs
            
print bl1
#set([88521, 88102])

print bl2
#set([88521, 88102])

print bl1 | bl2
#set([88521, 88102])

This is basically the solution from 'api.changes.gsoc'

Markus

** Attachment added: "add __eq__ and __hash__ to BugInfo class"
   http://launchpadlibrarian.net/8307943/123933.patch

-- 
BugList should return a set of int, not string
https://bugs.launchpad.net/bugs/123933
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to