Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910722
)
Change subject: fix example docstring of url2string
......................................................................
fix example docstring of url2string
Change-Id: I142968e987eb9e5706e2bfa00dedad63eb380eb0
Signed-off-by: Xqt <info(a)gno.de>
---
M pywikibot/tools/chars.py
1 file changed, 11 insertions(+), 0 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/tools/chars.py b/pywikibot/tools/chars.py
index f4d7a95..c086f4d 100644
--- a/pywikibot/tools/chars.py
+++ b/pywikibot/tools/chars.py
@@ -101,6 +101,7 @@
Uses the first encoding that doesn't cause an error.
**Example:**
+
>> url2string('/El%20Ni%C3%B1o/')
'/El Niño/'
>> url2string('/El%20Ni%C3%B1o/',
'ascii')
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910722
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: I142968e987eb9e5706e2bfa00dedad63eb380eb0
Gerrit-Change-Number: 910722
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-CC: jenkins-bot
Gerrit-MessageType: merged