Minor patches
Some checks are pending
/ build (macos-latest, 3.8) (push) Waiting to run
/ build (ubuntu-latest, pypy-2.7) (push) Waiting to run
/ build (windows-latest, 3.14) (push) Waiting to run

This commit is contained in:
Miroslav Štampar 2026-06-12 00:09:07 +02:00
parent 6e1fe6fbca
commit 8e48af61b7
5 changed files with 15 additions and 8 deletions

View file

@ -282,6 +282,8 @@ def decodePage(page, contentEncoding, contentType, percentDecode=True):
'<html>foo&bar</html>'
>>> getText(decodePage(b"&#x9;", None, "text/html; charset=utf-8"))
'\\t'
>>> getText(decodePage(b"&#x4A;", None, "text/html; charset=utf-8"))
'J'
"""
if not page or (conf.nullConnection and len(page) < 2):