Dalba created this task.
Dalba added a subscriber: Dalba.
Dalba added projects: pywikibot-core, Easy.
Herald added subscribers: pywikibot-bugs-list, StudiesWorld, Aklapper.

TASK DESCRIPTION
  It seems that `Page.put` method always tries to send a web request to save 
the page, even if the `newtext` parameter is the same as the current text.
  
  Although this can be done manually, I think it's still a good idea to compare 
`page.text` with the newtext parameter passed to `page.put` before trying to 
save it and avoid the unnecessary web request. 
  
  This simple comparison does not seem to cost much processing time at all, but 
in those cases that the user has not checked the change, it can reduce server 
load and improve script's speed a little bit.
  
  Users that want to avoid this comparison will be able to use `Page.save` 
directly.

TASK DETAIL
  https://phabricator.wikimedia.org/T122715

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dalba
Cc: Aklapper, StudiesWorld, pywikibot-bugs-list, Dalba, jayvdb



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

Reply via email to