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

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/955413
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I23a6db0ca6878a9ca364cd0427487883bf2180cb
Gerrit-Change-Number: 955413
Gerrit-PatchSet: 1
Gerrit-Owner: JJMC89 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to