jenkins-bot submitted this change.

View Change


Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[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(-)

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 change 926726. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ida25a2f6f5f73d94d4cd996d406cc946593e7bdb
Gerrit-Change-Number: 926726
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged