jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/955413 )
Change subject: upload: don't include the section in the page title ......................................................................
upload: don't include the section in the page title
Change-Id: I23a6db0ca6878a9ca364cd0427487883bf2180cb --- M pywikibot/site/_upload.py 1 file changed, 13 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site/_upload.py b/pywikibot/site/_upload.py index 0a0d0b6..7cef645 100644 --- a/pywikibot/site/_upload.py +++ b/pywikibot/site/_upload.py @@ -173,7 +173,10 @@
token = self.site.tokens['csrf'] result = None - file_page_title = self.filepage.title(with_ns=False) + file_page_title = self.filepage.title( + with_ns=False, + with_section=False, + ) file_size = None
# make sure file actually exists
pywikibot-commits@lists.wikimedia.org