osm-labo/venv/lib/python3.12/site-packages/bleach/six_shim.py

20 lines
305 B
Python
Raw Normal View History

2025-08-31 12:29:41 +02:00
"""
Replacement module for what html5lib uses six for.
"""
import http.client
import operator
import urllib
PY3 = True
binary_type = bytes
string_types = (str,)
text_type = str
unichr = chr
viewkeys = operator.methodcaller("keys")
http_client = http.client
urllib = urllib
urllib_parse = urllib.parse