jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/532423 )

Change subject: [PEP8] pep8 changes
......................................................................

[PEP8] pep8 changes

Change-Id: I1454e6d701844d72570fd3e57e90b8e4b76a07c6
---
M pywikibot/site.py
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/site.py b/pywikibot/site.py
index 4b8e9b5..074fb34 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -6305,8 +6305,10 @@
                                       3, since='20150823')
         if isinstance(ignore_warnings, Iterable):
             ignored_warnings = ignore_warnings
-            ignore_warnings = lambda warnings: all(  # noqa: E731
-                w.code in ignored_warnings for w in warnings)
+
+            def ignore_warnings(warnings):
+                return all(w.code in ignored_warnings for w in warnings)
+
         ignore_all_warnings = not callable(ignore_warnings) and ignore_warnings
         if text is None:
             text = filepage.text

--
To view, visit https://gerrit.wikimedia.org/r/532423
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1454e6d701844d72570fd3e57e90b8e4b76a07c6
Gerrit-Change-Number: 532423
Gerrit-PatchSet: 2
Gerrit-Owner: Huji <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot (75)
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to