[status] [PATCH] Switch debianbts.get_bugs usage from positional to keyword arguments
This fixes a warning from the debianbts Python module and get-bug-status:
Calling get_bugs with positional arguments is deprecated, please use keyword arguments instead.
---
get-bug-status | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/get-bug-status b/get-bug-status
index 9e32914..ce270f3 100755
--- a/get-bug-status
+++ b/get-bug-status
@@ -9,7 +9,7 @@ import os
RELEVANT_FIELDS = ('subject', 'done', 'bug_num', 'tags')
-bug_numbers = debianbts.get_bugs('package', 'mirrors')
+bug_numbers = debianbts.get_bugs(package='mirrors')
bugs = debianbts.get_status(bug_numbers)
dicts = [b.__dict__ for b in bugs]
data = []
--
2.39.0
Reply to: