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``,