Blame src/python-problem/examples/bugzilla_numbers.py
|
Packit |
8ea169 |
import problem
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
bugs = set()
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
for prob in problem.list():
|
|
Packit |
8ea169 |
if not hasattr(prob, 'reported_to'):
|
|
Packit |
8ea169 |
continue
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
for line in prob.reported_to.splitlines():
|
|
Packit |
8ea169 |
if line.startswith('Bugzilla:'):
|
|
Packit |
8ea169 |
bug_num = int(line.split('=')[-1])
|
|
Packit |
8ea169 |
bugs.add(bug_num)
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
print(bugs)
|