Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1307553?usp=email )
Change subject: Fix for unnecessary dictionary unpacking in echo.py ......................................................................
Fix for unnecessary dictionary unpacking in echo.py
Unpacking a dictionary into another dictionary is redundant. The unpacking operator can be removed, making the code more readable.
Change-Id: I303a86be5fd5bbab2e2df056ebdb98f226867e3c --- M pywikibot/echo.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/echo.py b/pywikibot/echo.py index 989d942..387110d 100644 --- a/pywikibot/echo.py +++ b/pywikibot/echo.py @@ -99,4 +99,4 @@ if self.event_id is None: return False
- return self.site.notifications_mark_read(**{'list': self.event_id}) + return self.site.notifications_mark_read(list=self.event_id)
pywikibot-commits@lists.wikimedia.org