mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
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:
parent
7577e10f13
commit
c205ee0381
@ -87,8 +87,7 @@ def get_bug_numbers(bug_list):
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
bug_num = match.groups()[0]
|
bug_num = match.groups()[0]
|
||||||
bug_num = bug_num.lstrip("#")
|
bug_num = bug_num.lstrip("#")
|
||||||
bug_num = int(bug_num)
|
bug_nums.append(int(bug_num))
|
||||||
bug_nums.append(bug_num)
|
|
||||||
|
|
||||||
return bug_nums
|
return bug_nums
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user