jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/588953 )
Change subject: [bugfix] Add 'setpagelanguage' to write actions ......................................................................
[bugfix] Add 'setpagelanguage' to write actions
Also sort write actions tuple
Change-Id: I30f946de8fd4726335cd59d0ae51e20f54f3c14e --- M pywikibot/data/api.py 1 file changed, 10 insertions(+), 12 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py index 9560b53..116d143 100644 --- a/pywikibot/data/api.py +++ b/pywikibot/data/api.py @@ -1221,18 +1221,16 @@ # things like throttling or skipping actions when we're in simulation # mode self.write = self.action in ( - 'edit', 'move', 'rollback', 'delete', 'undelete', - 'protect', 'block', 'unblock', 'watch', 'patrol', - 'import', 'userrights', 'upload', 'emailuser', - 'createaccount', 'setnotificationtimestamp', - 'filerevert', 'options', 'purge', 'revisiondelete', - 'wbeditentity', 'wbsetlabel', 'wbsetdescription', - 'wbsetaliases', 'wblinktitles', 'wbsetsitelink', - 'wbcreateclaim', 'wbremoveclaims', 'wbsetclaimvalue', - 'wbsetreference', 'wbremovereferences', 'wbsetclaim', - 'wbcreateredirect', 'wbmergeitems', 'wbsetqualifier', - 'wbremovequalifiers', - 'thank', 'flowthank' + 'block', 'createaccount', 'delete', 'edit', 'emailuser', + 'filerevert', 'flowthank', 'import', 'move', 'options', 'patrol', + 'protect', 'purge', 'revisiondelete', 'rollback', + 'setnotificationtimestamp', 'setpagelanguage', 'thank', 'unblock', + 'undelete', 'upload', 'userrights', 'watch', + 'wbcreateclaim', 'wbcreateredirect', 'wbeditentity', + 'wblinktitles', 'wbmergeitems', 'wbremoveclaims', + 'wbremovequalifiers', 'wbremovereferences', 'wbsetaliases', + 'wbsetclaim', 'wbsetclaimvalue', 'wbsetdescription', 'wbsetlabel', + 'wbsetqualifier', 'wbsetreference', 'wbsetsitelink', ) # Client side verification that the request is being performed # by a logged in user, and warn if it isn't a config username.