jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/606968 )
Change subject: [bugfix] escape delete char 127 in UnicodeToAsciiHtml function ......................................................................
[bugfix] escape delete char 127 in UnicodeToAsciiHtml function
Delete char 127 should be escaped to  because it is not a visible character but an ascii command character
Change-Id: I65ea32bb5cf77aee331a6c0bfe966feb98c16b5e --- M pywikibot/page/__init__.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py index acf6a99..422fc83 100644 --- a/pywikibot/page/__init__.py +++ b/pywikibot/page/__init__.py @@ -6864,7 +6864,7 @@ html = [] for c in s: cord = ord(c) - if 31 < cord < 128: + if 31 < cord < 127: html.append(c) else: html.append('&#%d;' % cord)
pywikibot-commits@lists.wikimedia.org