import-bug-from-debian: avoid type change of bug_num

The variable `bug_num` has the type `str`. Do not reuse the name for
type `int` to ease mypy.
This commit is contained in:
Benjamin Drung 2024-11-02 15:33:15 +01:00
parent 7577e10f13
commit c205ee0381

View File

@ -87,8 +87,7 @@ def get_bug_numbers(bug_list):
sys.exit(1)
bug_num = match.groups()[0]
bug_num = bug_num.lstrip("#")
bug_num = int(bug_num)
bug_nums.append(bug_num)
bug_nums.append(int(bug_num))
return bug_nums