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)

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1307553?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I303a86be5fd5bbab2e2df056ebdb98f226867e3c
Gerrit-Change-Number: 1307553
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to