Ubuntu Pastebin

Paste from cjwatson at Wed, 27 Sep 2017 13:33:19 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#! /usr/bin/python3

from __future__ import print_function

from argparse import ArgumentParser

from launchpadlib.launchpad import Launchpad

parser = ArgumentParser()
parser.add_argument("person")
args = parser.parse_args()

launchpad = Launchpad.login_with("lp-subscribed-bugs", "production")
person = launchpad.people[args.person]
for task in person.searchTasks():
    bug = task.bug
    print(bug.id, task.status, task.target.display_name)
    print('\t%s' % bug.title)
Download as text