From 6de2e6bd415bd881a852cd32ae8540022bc68691 Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Thu, 14 Nov 2019 18:43:05 +0100 Subject: [PATCH] Remove unnecessary use of a comprehension Reported by pylint 2.4.4 (unnecessary-comprehension) --- scripts/count-bugs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/count-bugs.py b/scripts/count-bugs.py index 265a0570..8a464326 100755 --- a/scripts/count-bugs.py +++ b/scripts/count-bugs.py @@ -41,7 +41,7 @@ def read_soup(index_html): soup = BeautifulSoup(index, 'html5lib') tables = soup.find_all('table') summary = tables[1] - return {bug: count for bug, count in summary_values(summary)} + return dict(summary_values(summary)) def find_longest_name_length(names):