X7ROOT File Manager
Current Path:
/usr/lib/python3.6/site-packages/pip/_vendor/html5lib/filters
usr
/
lib
/
python3.6
/
site-packages
/
pip
/
_vendor
/
html5lib
/
filters
/
ðŸ“
..
📄
__init__.py
(0 B)
ðŸ“
__pycache__
📄
alphabeticalattributes.py
(621 B)
📄
base.py
(286 B)
📄
inject_meta_charset.py
(2.68 KB)
📄
lint.py
(3.29 KB)
📄
optionaltags.py
(10.29 KB)
📄
sanitizer.py
(24.52 KB)
📄
whitespace.py
(1.11 KB)
Editing: alphabeticalattributes.py
from __future__ import absolute_import, division, unicode_literals from . import base try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict class Filter(base.Filter): def __iter__(self): for token in base.Filter.__iter__(self): if token["type"] in ("StartTag", "EmptyTag"): attrs = OrderedDict() for name, value in sorted(token["data"].items(), key=lambda x: x[0]): attrs[name] = value token["data"] = attrs yield token
Upload File
Create Folder