jenkins-bot submitted this change.

View Change


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

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

To view, visit change 955413. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I23a6db0ca6878a9ca364cd0427487883bf2180cb
Gerrit-Change-Number: 955413
Gerrit-PatchSet: 1
Gerrit-Owner: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged