jenkins-bot submitted this change.
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.