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@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')