jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/926726 )
Change subject: [doc] Show a warning for FilePage.download() ...................................................................... [doc] Show a warning for FilePage.download() FilePage.download() overrides a given file without further notes. Change-Id: Ida25a2f6f5f73d94d4cd996d406cc946593e7bdb --- M pywikibot/page/_filepage.py 1 file changed, 13 insertions(+), 0 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/page/_filepage.py b/pywikibot/page/_filepage.py index 79f59a0..a6c6473 100644 --- a/pywikibot/page/_filepage.py +++ b/pywikibot/page/_filepage.py @@ -312,6 +312,8 @@ iterable of path segments. .. note:: filename suffix is adjusted if target url's suffix is different which may be the case if a thumbnail is loaded. + .. warning:: If a file already exists, it will be overridden + without further notes. .. seealso:: :api:`Imageinfo` for new parameters :param filename: filename where to save file. If ``None``, -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/926726 To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Change-Id: Ida25a2f6f5f73d94d4cd996d406cc946593e7bdb Gerrit-Change-Number: 926726 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <i...@gno.de> Gerrit-Reviewer: Xqt <i...@gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
_______________________________________________ Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org