jenkins-bot has submitted this change and it was merged.

Change subject: WikibasePage.editEntity() no longer requires python 2.7
......................................................................


WikibasePage.editEntity() no longer requires python 2.7

Or so T72707 says.

Bug: T72707
Change-Id: I936307ca3b26cee61d0fc40753fd8211a0752050
---
M pywikibot/page.py
1 file changed, 1 insertion(+), 3 deletions(-)

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



diff --git a/pywikibot/page.py b/pywikibot/page.py
index f8f2c47..79f90a7 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -3080,10 +3080,8 @@
          - ItemPage.setSitelinks
 
         @param data: Data to be saved
-        @type data: dict (must be not None for python 2.6; bug 70707)
+        @type data: dict, or None to save the current content of the entity.
         """
-        assert(sys.version_info >= (2, 7) or data is not None)
-
         if hasattr(self, 'lastrevid'):
             baserevid = self.lastrevid
         else:

-- 
To view, visit https://gerrit.wikimedia.org/r/200925
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I936307ca3b26cee61d0fc40753fd8211a0752050
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Nemo bis <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to