@scrypted/arlo 0.11.26 → 0.11.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plugin.zip +0 -0
- package/package.json +1 -1
- package/venv/bin/Activate.ps1 +0 -247
- package/venv/bin/activate +0 -69
- package/venv/bin/activate.csh +0 -26
- package/venv/bin/activate.fish +0 -69
- package/venv/bin/normalizer +0 -8
- package/venv/bin/pip +0 -8
- package/venv/bin/pip3 +0 -8
- package/venv/bin/pip3.10 +0 -8
- package/venv/lib/python3.10/site-packages/_cffi_backend.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/_distutils_hack/__init__.py +0 -132
- package/venv/lib/python3.10/site-packages/_distutils_hack/override.py +0 -1
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/__init__.py +0 -13
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/_staggered.py +0 -202
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/impl.py +0 -210
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/types.py +0 -12
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/utils.py +0 -97
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/LICENSE +0 -279
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/METADATA +0 -123
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/RECORD +0 -16
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_cparser.pxd.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_find_header.pxd.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_http_parser.pyx.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_http_writer.pyx.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/hdrs.py.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/__init__.py +0 -264
- package/venv/lib/python3.10/site-packages/aiohttp/_cparser.pxd +0 -158
- package/venv/lib/python3.10/site-packages/aiohttp/_find_header.pxd +0 -2
- package/venv/lib/python3.10/site-packages/aiohttp/_headers.pxi +0 -83
- package/venv/lib/python3.10/site-packages/aiohttp/_http_parser.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_http_parser.pyx +0 -837
- package/venv/lib/python3.10/site-packages/aiohttp/_http_writer.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_http_writer.pyx +0 -162
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/mask.pxd.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/mask.pyx.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/reader_c.pxd.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/__init__.py +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/helpers.py +0 -147
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.pxd +0 -3
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.pyx +0 -48
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/models.py +0 -84
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader.py +0 -31
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.pxd +0 -102
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.py +0 -468
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_py.py +0 -468
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/writer.py +0 -177
- package/venv/lib/python3.10/site-packages/aiohttp/abc.py +0 -253
- package/venv/lib/python3.10/site-packages/aiohttp/base_protocol.py +0 -100
- package/venv/lib/python3.10/site-packages/aiohttp/client.py +0 -1550
- package/venv/lib/python3.10/site-packages/aiohttp/client_exceptions.py +0 -421
- package/venv/lib/python3.10/site-packages/aiohttp/client_proto.py +0 -307
- package/venv/lib/python3.10/site-packages/aiohttp/client_reqrep.py +0 -1315
- package/venv/lib/python3.10/site-packages/aiohttp/client_ws.py +0 -426
- package/venv/lib/python3.10/site-packages/aiohttp/compression_utils.py +0 -173
- package/venv/lib/python3.10/site-packages/aiohttp/connector.py +0 -1652
- package/venv/lib/python3.10/site-packages/aiohttp/cookiejar.py +0 -495
- package/venv/lib/python3.10/site-packages/aiohttp/formdata.py +0 -182
- package/venv/lib/python3.10/site-packages/aiohttp/hdrs.py +0 -121
- package/venv/lib/python3.10/site-packages/aiohttp/helpers.py +0 -944
- package/venv/lib/python3.10/site-packages/aiohttp/http.py +0 -72
- package/venv/lib/python3.10/site-packages/aiohttp/http_exceptions.py +0 -112
- package/venv/lib/python3.10/site-packages/aiohttp/http_parser.py +0 -1046
- package/venv/lib/python3.10/site-packages/aiohttp/http_websocket.py +0 -36
- package/venv/lib/python3.10/site-packages/aiohttp/http_writer.py +0 -249
- package/venv/lib/python3.10/site-packages/aiohttp/log.py +0 -8
- package/venv/lib/python3.10/site-packages/aiohttp/multipart.py +0 -1071
- package/venv/lib/python3.10/site-packages/aiohttp/payload.py +0 -519
- package/venv/lib/python3.10/site-packages/aiohttp/payload_streamer.py +0 -78
- package/venv/lib/python3.10/site-packages/aiohttp/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/pytest_plugin.py +0 -436
- package/venv/lib/python3.10/site-packages/aiohttp/resolver.py +0 -187
- package/venv/lib/python3.10/site-packages/aiohttp/streams.py +0 -727
- package/venv/lib/python3.10/site-packages/aiohttp/tcp_helpers.py +0 -37
- package/venv/lib/python3.10/site-packages/aiohttp/test_utils.py +0 -770
- package/venv/lib/python3.10/site-packages/aiohttp/tracing.py +0 -470
- package/venv/lib/python3.10/site-packages/aiohttp/typedefs.py +0 -69
- package/venv/lib/python3.10/site-packages/aiohttp/web.py +0 -605
- package/venv/lib/python3.10/site-packages/aiohttp/web_app.py +0 -620
- package/venv/lib/python3.10/site-packages/aiohttp/web_exceptions.py +0 -452
- package/venv/lib/python3.10/site-packages/aiohttp/web_fileresponse.py +0 -418
- package/venv/lib/python3.10/site-packages/aiohttp/web_log.py +0 -216
- package/venv/lib/python3.10/site-packages/aiohttp/web_middlewares.py +0 -121
- package/venv/lib/python3.10/site-packages/aiohttp/web_protocol.py +0 -750
- package/venv/lib/python3.10/site-packages/aiohttp/web_request.py +0 -916
- package/venv/lib/python3.10/site-packages/aiohttp/web_response.py +0 -840
- package/venv/lib/python3.10/site-packages/aiohttp/web_routedef.py +0 -214
- package/venv/lib/python3.10/site-packages/aiohttp/web_runner.py +0 -399
- package/venv/lib/python3.10/site-packages/aiohttp/web_server.py +0 -84
- package/venv/lib/python3.10/site-packages/aiohttp/web_urldispatcher.py +0 -1301
- package/venv/lib/python3.10/site-packages/aiohttp/web_ws.py +0 -622
- package/venv/lib/python3.10/site-packages/aiohttp/worker.py +0 -252
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/LICENSE.txt +0 -13
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/METADATA +0 -250
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/RECORD +0 -132
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/aiosignal/__init__.py +0 -36
- package/venv/lib/python3.10/site-packages/aiosignal/__init__.pyi +0 -12
- package/venv/lib/python3.10/site-packages/aiosignal/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/LICENSE +0 -201
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/METADATA +0 -123
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/RECORD +0 -10
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/async_timeout/__init__.py +0 -276
- package/venv/lib/python3.10/site-packages/async_timeout/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/LICENSE +0 -13
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/METADATA +0 -163
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/RECORD +0 -11
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/zip-safe +0 -1
- package/venv/lib/python3.10/site-packages/attr/__init__.py +0 -104
- package/venv/lib/python3.10/site-packages/attr/__init__.pyi +0 -389
- package/venv/lib/python3.10/site-packages/attr/_cmp.py +0 -160
- package/venv/lib/python3.10/site-packages/attr/_cmp.pyi +0 -13
- package/venv/lib/python3.10/site-packages/attr/_compat.py +0 -94
- package/venv/lib/python3.10/site-packages/attr/_config.py +0 -31
- package/venv/lib/python3.10/site-packages/attr/_funcs.py +0 -468
- package/venv/lib/python3.10/site-packages/attr/_make.py +0 -3055
- package/venv/lib/python3.10/site-packages/attr/_next_gen.py +0 -623
- package/venv/lib/python3.10/site-packages/attr/_typing_compat.pyi +0 -15
- package/venv/lib/python3.10/site-packages/attr/_version_info.py +0 -86
- package/venv/lib/python3.10/site-packages/attr/_version_info.pyi +0 -9
- package/venv/lib/python3.10/site-packages/attr/converters.py +0 -162
- package/venv/lib/python3.10/site-packages/attr/converters.pyi +0 -19
- package/venv/lib/python3.10/site-packages/attr/exceptions.py +0 -95
- package/venv/lib/python3.10/site-packages/attr/exceptions.pyi +0 -17
- package/venv/lib/python3.10/site-packages/attr/filters.py +0 -72
- package/venv/lib/python3.10/site-packages/attr/filters.pyi +0 -6
- package/venv/lib/python3.10/site-packages/attr/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/attr/setters.py +0 -79
- package/venv/lib/python3.10/site-packages/attr/setters.pyi +0 -20
- package/venv/lib/python3.10/site-packages/attr/validators.py +0 -710
- package/venv/lib/python3.10/site-packages/attr/validators.pyi +0 -86
- package/venv/lib/python3.10/site-packages/attrs/__init__.py +0 -69
- package/venv/lib/python3.10/site-packages/attrs/__init__.pyi +0 -263
- package/venv/lib/python3.10/site-packages/attrs/converters.py +0 -3
- package/venv/lib/python3.10/site-packages/attrs/exceptions.py +0 -3
- package/venv/lib/python3.10/site-packages/attrs/filters.py +0 -3
- package/venv/lib/python3.10/site-packages/attrs/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/attrs/setters.py +0 -3
- package/venv/lib/python3.10/site-packages/attrs/validators.py +0 -3
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/METADATA +0 -232
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/RECORD +0 -55
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/licenses/LICENSE +0 -21
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/METADATA +0 -123
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/RECORD +0 -90
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/licenses/AUTHORS +0 -49
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/licenses/LICENSE +0 -31
- package/venv/lib/python3.10/site-packages/bs4/__init__.py +0 -1170
- package/venv/lib/python3.10/site-packages/bs4/_deprecation.py +0 -80
- package/venv/lib/python3.10/site-packages/bs4/_typing.py +0 -196
- package/venv/lib/python3.10/site-packages/bs4/_warnings.py +0 -98
- package/venv/lib/python3.10/site-packages/bs4/builder/__init__.py +0 -848
- package/venv/lib/python3.10/site-packages/bs4/builder/_html5lib.py +0 -594
- package/venv/lib/python3.10/site-packages/bs4/builder/_htmlparser.py +0 -474
- package/venv/lib/python3.10/site-packages/bs4/builder/_lxml.py +0 -490
- package/venv/lib/python3.10/site-packages/bs4/css.py +0 -338
- package/venv/lib/python3.10/site-packages/bs4/dammit.py +0 -1408
- package/venv/lib/python3.10/site-packages/bs4/diagnose.py +0 -268
- package/venv/lib/python3.10/site-packages/bs4/element.py +0 -2886
- package/venv/lib/python3.10/site-packages/bs4/exceptions.py +0 -28
- package/venv/lib/python3.10/site-packages/bs4/filter.py +0 -755
- package/venv/lib/python3.10/site-packages/bs4/formatter.py +0 -276
- package/venv/lib/python3.10/site-packages/bs4/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/__init__.py +0 -1305
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4670634698080256.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4818336571064320.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4999465949331456.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5000587759190016.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5167584867909632.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5270998950477824.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5375146639360000.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5492400320282624.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5703933063462912.testcase +0 -2
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5843991618256896.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5984173902397440.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6124268085182464.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6241471367348224.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6306874195312640.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6450958476902400.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6600557255327744.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/crash-0d306a50c8ed8bcd0785b67000fcd5dea1d33f08.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/crash-ffbdfa8a2b26f13537b68d3794b0478a4090ee4a.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_builder.py +0 -28
- package/venv/lib/python3.10/site-packages/bs4/tests/test_builder_registry.py +0 -139
- package/venv/lib/python3.10/site-packages/bs4/tests/test_css.py +0 -536
- package/venv/lib/python3.10/site-packages/bs4/tests/test_dammit.py +0 -433
- package/venv/lib/python3.10/site-packages/bs4/tests/test_element.py +0 -138
- package/venv/lib/python3.10/site-packages/bs4/tests/test_filter.py +0 -674
- package/venv/lib/python3.10/site-packages/bs4/tests/test_formatter.py +0 -170
- package/venv/lib/python3.10/site-packages/bs4/tests/test_fuzz.py +0 -181
- package/venv/lib/python3.10/site-packages/bs4/tests/test_html5lib.py +0 -264
- package/venv/lib/python3.10/site-packages/bs4/tests/test_htmlparser.py +0 -161
- package/venv/lib/python3.10/site-packages/bs4/tests/test_lxml.py +0 -196
- package/venv/lib/python3.10/site-packages/bs4/tests/test_navigablestring.py +0 -144
- package/venv/lib/python3.10/site-packages/bs4/tests/test_pageelement.py +0 -437
- package/venv/lib/python3.10/site-packages/bs4/tests/test_soup.py +0 -602
- package/venv/lib/python3.10/site-packages/bs4/tests/test_tag.py +0 -241
- package/venv/lib/python3.10/site-packages/bs4/tests/test_tree.py +0 -1452
- package/venv/lib/python3.10/site-packages/cachetools/__init__.py +0 -859
- package/venv/lib/python3.10/site-packages/cachetools/func.py +0 -121
- package/venv/lib/python3.10/site-packages/cachetools/keys.py +0 -62
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/LICENSE +0 -20
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/METADATA +0 -151
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/RECORD +0 -13
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/certifi/__init__.py +0 -4
- package/venv/lib/python3.10/site-packages/certifi/__main__.py +0 -12
- package/venv/lib/python3.10/site-packages/certifi/cacert.pem +0 -4897
- package/venv/lib/python3.10/site-packages/certifi/core.py +0 -114
- package/venv/lib/python3.10/site-packages/certifi/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/LICENSE +0 -20
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/METADATA +0 -77
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/RECORD +0 -14
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/cffi/__init__.py +0 -14
- package/venv/lib/python3.10/site-packages/cffi/_cffi_errors.h +0 -149
- package/venv/lib/python3.10/site-packages/cffi/_cffi_include.h +0 -389
- package/venv/lib/python3.10/site-packages/cffi/_embedding.h +0 -550
- package/venv/lib/python3.10/site-packages/cffi/_imp_emulation.py +0 -83
- package/venv/lib/python3.10/site-packages/cffi/_shimmed_dist_utils.py +0 -45
- package/venv/lib/python3.10/site-packages/cffi/api.py +0 -967
- package/venv/lib/python3.10/site-packages/cffi/backend_ctypes.py +0 -1121
- package/venv/lib/python3.10/site-packages/cffi/cffi_opcode.py +0 -187
- package/venv/lib/python3.10/site-packages/cffi/commontypes.py +0 -82
- package/venv/lib/python3.10/site-packages/cffi/cparser.py +0 -1015
- package/venv/lib/python3.10/site-packages/cffi/error.py +0 -31
- package/venv/lib/python3.10/site-packages/cffi/ffiplatform.py +0 -113
- package/venv/lib/python3.10/site-packages/cffi/lock.py +0 -30
- package/venv/lib/python3.10/site-packages/cffi/model.py +0 -618
- package/venv/lib/python3.10/site-packages/cffi/parse_c_type.h +0 -181
- package/venv/lib/python3.10/site-packages/cffi/pkgconfig.py +0 -121
- package/venv/lib/python3.10/site-packages/cffi/recompiler.py +0 -1598
- package/venv/lib/python3.10/site-packages/cffi/setuptools_ext.py +0 -216
- package/venv/lib/python3.10/site-packages/cffi/vengine_cpy.py +0 -1084
- package/venv/lib/python3.10/site-packages/cffi/vengine_gen.py +0 -679
- package/venv/lib/python3.10/site-packages/cffi/verifier.py +0 -306
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/LICENSE +0 -26
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/METADATA +0 -40
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/RECORD +0 -48
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/entry_points.txt +0 -2
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/top_level.txt +0 -2
- package/venv/lib/python3.10/site-packages/charset_normalizer/__init__.py +0 -48
- package/venv/lib/python3.10/site-packages/charset_normalizer/__main__.py +0 -6
- package/venv/lib/python3.10/site-packages/charset_normalizer/api.py +0 -668
- package/venv/lib/python3.10/site-packages/charset_normalizer/cd.py +0 -395
- package/venv/lib/python3.10/site-packages/charset_normalizer/cli/__init__.py +0 -8
- package/venv/lib/python3.10/site-packages/charset_normalizer/cli/__main__.py +0 -321
- package/venv/lib/python3.10/site-packages/charset_normalizer/constant.py +0 -1998
- package/venv/lib/python3.10/site-packages/charset_normalizer/legacy.py +0 -66
- package/venv/lib/python3.10/site-packages/charset_normalizer/md.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/md.py +0 -630
- package/venv/lib/python3.10/site-packages/charset_normalizer/md__mypyc.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/models.py +0 -360
- package/venv/lib/python3.10/site-packages/charset_normalizer/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/utils.py +0 -408
- package/venv/lib/python3.10/site-packages/charset_normalizer/version.py +0 -8
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/LICENSE +0 -21
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/METADATA +0 -721
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/RECORD +0 -35
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/entry_points.txt +0 -2
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/cloudscraper/__init__.py +0 -407
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/2captcha.py +0 -258
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/9kw.py +0 -214
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/__init__.py +0 -47
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/anticaptcha.py +0 -199
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/capmonster.py +0 -199
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/capsolver.py +0 -188
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/deathbycaptcha.py +0 -276
- package/venv/lib/python3.10/site-packages/cloudscraper/cloudflare.py +0 -490
- package/venv/lib/python3.10/site-packages/cloudscraper/exceptions.py +0 -111
- package/venv/lib/python3.10/site-packages/cloudscraper/help.py +0 -72
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/__init__.py +0 -56
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/chakracore.py +0 -103
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/encapsulated.py +0 -62
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/js2py.py +0 -44
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/jsunfuck.py +0 -97
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/native.py +0 -233
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/nodejs.py +0 -49
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/v8.py +0 -33
- package/venv/lib/python3.10/site-packages/cloudscraper/user_agent/__init__.py +0 -124
- package/venv/lib/python3.10/site-packages/cloudscraper/user_agent/browsers.json +0 -7913
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/LICENSE +0 -22
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/METADATA +0 -674
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/RECORD +0 -48
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/curl_cffi/__init__.py +0 -37
- package/venv/lib/python3.10/site-packages/curl_cffi/__version__.py +0 -8
- package/venv/lib/python3.10/site-packages/curl_cffi/_asyncio_selector.py +0 -344
- package/venv/lib/python3.10/site-packages/curl_cffi/_wrapper.abi3.so +0 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/aio.py +0 -257
- package/venv/lib/python3.10/site-packages/curl_cffi/const.py +0 -581
- package/venv/lib/python3.10/site-packages/curl_cffi/curl.py +0 -548
- package/venv/lib/python3.10/site-packages/curl_cffi/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/__init__.py +0 -146
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/cookies.py +0 -355
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/errors.py +0 -7
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/exceptions.py +0 -219
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/headers.py +0 -348
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/impersonate.py +0 -360
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/models.py +0 -292
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/session.py +0 -1021
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/utils.py +0 -663
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/websockets.py +0 -711
- package/venv/lib/python3.10/site-packages/curl_cffi/utils.py +0 -13
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/LICENSE +0 -21
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/METADATA +0 -333
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/RECORD +0 -43
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/distutils-precedence.pth +0 -1
- package/venv/lib/python3.10/site-packages/frozenlist/__init__.py +0 -98
- package/venv/lib/python3.10/site-packages/frozenlist/__init__.pyi +0 -47
- package/venv/lib/python3.10/site-packages/frozenlist/_frozenlist.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/frozenlist/_frozenlist.pyx +0 -123
- package/venv/lib/python3.10/site-packages/frozenlist/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/LICENSE +0 -201
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/METADATA +0 -477
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/RECORD +0 -12
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/WHEEL +0 -8
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/idna/__init__.py +0 -45
- package/venv/lib/python3.10/site-packages/idna/codec.py +0 -122
- package/venv/lib/python3.10/site-packages/idna/compat.py +0 -15
- package/venv/lib/python3.10/site-packages/idna/core.py +0 -437
- package/venv/lib/python3.10/site-packages/idna/idnadata.py +0 -4243
- package/venv/lib/python3.10/site-packages/idna/intranges.py +0 -57
- package/venv/lib/python3.10/site-packages/idna/package_data.py +0 -1
- package/venv/lib/python3.10/site-packages/idna/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/idna/uts46data.py +0 -8681
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/LICENSE.md +0 -31
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/METADATA +0 -250
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/RECORD +0 -22
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/multidict/__init__.py +0 -48
- package/venv/lib/python3.10/site-packages/multidict/__init__.pyi +0 -152
- package/venv/lib/python3.10/site-packages/multidict/_abc.py +0 -48
- package/venv/lib/python3.10/site-packages/multidict/_compat.py +0 -14
- package/venv/lib/python3.10/site-packages/multidict/_multidict.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/multidict/_multidict_base.py +0 -152
- package/venv/lib/python3.10/site-packages/multidict/_multidict_py.py +0 -527
- package/venv/lib/python3.10/site-packages/multidict/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/LICENSE +0 -13
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/METADATA +0 -140
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/RECORD +0 -19
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/paho/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/__init__.py +0 -5
- package/venv/lib/python3.10/site-packages/paho/mqtt/client.py +0 -5004
- package/venv/lib/python3.10/site-packages/paho/mqtt/enums.py +0 -113
- package/venv/lib/python3.10/site-packages/paho/mqtt/matcher.py +0 -78
- package/venv/lib/python3.10/site-packages/paho/mqtt/packettypes.py +0 -43
- package/venv/lib/python3.10/site-packages/paho/mqtt/properties.py +0 -421
- package/venv/lib/python3.10/site-packages/paho/mqtt/publish.py +0 -306
- package/venv/lib/python3.10/site-packages/paho/mqtt/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/reasoncodes.py +0 -223
- package/venv/lib/python3.10/site-packages/paho/mqtt/subscribe.py +0 -281
- package/venv/lib/python3.10/site-packages/paho/mqtt/subscribeoptions.py +0 -113
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/METADATA +0 -635
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/RECORD +0 -29
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/licenses/LICENSE.txt +0 -3
- package/venv/lib/python3.10/site-packages/pip/__init__.py +0 -13
- package/venv/lib/python3.10/site-packages/pip/__main__.py +0 -31
- package/venv/lib/python3.10/site-packages/pip/_internal/__init__.py +0 -19
- package/venv/lib/python3.10/site-packages/pip/_internal/build_env.py +0 -296
- package/venv/lib/python3.10/site-packages/pip/_internal/cache.py +0 -264
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/__init__.py +0 -4
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/autocompletion.py +0 -171
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/base_command.py +0 -220
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/cmdoptions.py +0 -1018
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/command_context.py +0 -27
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/main.py +0 -70
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/main_parser.py +0 -87
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/parser.py +0 -292
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/progress_bars.py +0 -321
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/req_command.py +0 -506
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/spinners.py +0 -157
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/status_codes.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/__init__.py +0 -127
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/cache.py +0 -223
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/check.py +0 -53
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/completion.py +0 -96
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/configuration.py +0 -266
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/debug.py +0 -202
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/download.py +0 -140
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/freeze.py +0 -97
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/hash.py +0 -59
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/help.py +0 -41
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/index.py +0 -139
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/install.py +0 -771
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/list.py +0 -363
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/search.py +0 -174
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/show.py +0 -178
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/uninstall.py +0 -105
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/wheel.py +0 -178
- package/venv/lib/python3.10/site-packages/pip/_internal/configuration.py +0 -366
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/__init__.py +0 -21
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/base.py +0 -36
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/installed.py +0 -20
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py +0 -127
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/wheel.py +0 -31
- package/venv/lib/python3.10/site-packages/pip/_internal/exceptions.py +0 -658
- package/venv/lib/python3.10/site-packages/pip/_internal/index/__init__.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_internal/index/collector.py +0 -648
- package/venv/lib/python3.10/site-packages/pip/_internal/index/package_finder.py +0 -1004
- package/venv/lib/python3.10/site-packages/pip/_internal/index/sources.py +0 -224
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/__init__.py +0 -520
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/_distutils.py +0 -169
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/_sysconfig.py +0 -219
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/base.py +0 -52
- package/venv/lib/python3.10/site-packages/pip/_internal/main.py +0 -12
- package/venv/lib/python3.10/site-packages/pip/_internal/metadata/__init__.py +0 -62
- package/venv/lib/python3.10/site-packages/pip/_internal/metadata/base.py +0 -546
- package/venv/lib/python3.10/site-packages/pip/_internal/metadata/pkg_resources.py +0 -256
- package/venv/lib/python3.10/site-packages/pip/_internal/models/__init__.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_internal/models/candidate.py +0 -34
- package/venv/lib/python3.10/site-packages/pip/_internal/models/direct_url.py +0 -220
- package/venv/lib/python3.10/site-packages/pip/_internal/models/format_control.py +0 -80
- package/venv/lib/python3.10/site-packages/pip/_internal/models/index.py +0 -28
- package/venv/lib/python3.10/site-packages/pip/_internal/models/link.py +0 -288
- package/venv/lib/python3.10/site-packages/pip/_internal/models/scheme.py +0 -31
- package/venv/lib/python3.10/site-packages/pip/_internal/models/search_scope.py +0 -129
- package/venv/lib/python3.10/site-packages/pip/_internal/models/selection_prefs.py +0 -51
- package/venv/lib/python3.10/site-packages/pip/_internal/models/target_python.py +0 -110
- package/venv/lib/python3.10/site-packages/pip/_internal/models/wheel.py +0 -89
- package/venv/lib/python3.10/site-packages/pip/_internal/network/__init__.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_internal/network/auth.py +0 -323
- package/venv/lib/python3.10/site-packages/pip/_internal/network/cache.py +0 -69
- package/venv/lib/python3.10/site-packages/pip/_internal/network/download.py +0 -185
- package/venv/lib/python3.10/site-packages/pip/_internal/network/lazy_wheel.py +0 -210
- package/venv/lib/python3.10/site-packages/pip/_internal/network/session.py +0 -454
- package/venv/lib/python3.10/site-packages/pip/_internal/network/utils.py +0 -96
- package/venv/lib/python3.10/site-packages/pip/_internal/network/xmlrpc.py +0 -60
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata.py +0 -39
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_editable.py +0 -41
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_legacy.py +0 -74
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel.py +0 -37
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_editable.py +0 -46
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_legacy.py +0 -102
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/check.py +0 -149
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/freeze.py +0 -254
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/__init__.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/editable_legacy.py +0 -47
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/legacy.py +0 -120
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/wheel.py +0 -738
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/prepare.py +0 -642
- package/venv/lib/python3.10/site-packages/pip/_internal/pyproject.py +0 -168
- package/venv/lib/python3.10/site-packages/pip/_internal/req/__init__.py +0 -94
- package/venv/lib/python3.10/site-packages/pip/_internal/req/constructors.py +0 -490
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_file.py +0 -536
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_install.py +0 -858
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_set.py +0 -189
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_tracker.py +0 -124
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py +0 -633
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/base.py +0 -20
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/legacy/resolver.py +0 -467
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/base.py +0 -141
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py +0 -547
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py +0 -739
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +0 -155
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/provider.py +0 -248
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/reporter.py +0 -68
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/requirements.py +0 -166
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py +0 -292
- package/venv/lib/python3.10/site-packages/pip/_internal/self_outdated_check.py +0 -189
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/_log.py +0 -38
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/appdirs.py +0 -52
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/compat.py +0 -63
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/compatibility_tags.py +0 -165
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/datetime.py +0 -11
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/deprecation.py +0 -120
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/direct_url_helpers.py +0 -87
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/distutils_args.py +0 -42
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/egg_link.py +0 -75
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/encoding.py +0 -36
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/entrypoints.py +0 -27
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/filesystem.py +0 -182
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/filetypes.py +0 -27
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/glibc.py +0 -88
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/hashes.py +0 -144
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/inject_securetransport.py +0 -35
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/logging.py +0 -343
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/misc.py +0 -653
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/models.py +0 -39
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/packaging.py +0 -57
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/setuptools_build.py +0 -195
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/subprocess.py +0 -260
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/temp_dir.py +0 -246
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/unpacking.py +0 -258
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/urls.py +0 -62
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/virtualenv.py +0 -104
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/wheel.py +0 -136
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/__init__.py +0 -15
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/bazaar.py +0 -101
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/git.py +0 -526
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/mercurial.py +0 -163
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/subversion.py +0 -324
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/versioncontrol.py +0 -705
- package/venv/lib/python3.10/site-packages/pip/_internal/wheel_builder.py +0 -377
- package/venv/lib/python3.10/site-packages/pip/_vendor/__init__.py +0 -111
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/__init__.py +0 -18
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/_cmd.py +0 -61
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/adapter.py +0 -137
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/cache.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +0 -150
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +0 -37
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/compat.py +0 -32
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/controller.py +0 -415
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/filewrapper.py +0 -111
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/heuristics.py +0 -139
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/serialize.py +0 -186
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/wrapper.py +0 -33
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/__init__.py +0 -3
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/__main__.py +0 -12
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/cacert.pem +0 -4362
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/core.py +0 -76
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/__init__.py +0 -83
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/big5freq.py +0 -386
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/big5prober.py +0 -47
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/chardistribution.py +0 -233
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/charsetgroupprober.py +0 -107
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/charsetprober.py +0 -145
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cli/__init__.py +0 -1
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cli/chardetect.py +0 -84
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/codingstatemachine.py +0 -88
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/compat.py +0 -36
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cp949prober.py +0 -49
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/enums.py +0 -76
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/escprober.py +0 -101
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/escsm.py +0 -246
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/eucjpprober.py +0 -92
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euckrfreq.py +0 -195
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euckrprober.py +0 -47
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euctwfreq.py +0 -387
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euctwprober.py +0 -46
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/gb2312freq.py +0 -283
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/gb2312prober.py +0 -46
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/hebrewprober.py +0 -292
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/jisfreq.py +0 -325
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/jpcntx.py +0 -233
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langbulgarianmodel.py +0 -4650
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langgreekmodel.py +0 -4398
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langhebrewmodel.py +0 -4383
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langhungarianmodel.py +0 -4650
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langrussianmodel.py +0 -5718
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langthaimodel.py +0 -4383
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langturkishmodel.py +0 -4383
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/latin1prober.py +0 -145
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcharsetprober.py +0 -91
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcsgroupprober.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcssm.py +0 -572
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/metadata/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/metadata/languages.py +0 -310
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sbcharsetprober.py +0 -145
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sbcsgroupprober.py +0 -83
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sjisprober.py +0 -92
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/universaldetector.py +0 -286
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/utf8prober.py +0 -82
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/version.py +0 -9
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/__init__.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/ansi.py +0 -102
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/ansitowin32.py +0 -258
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/initialise.py +0 -80
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/win32.py +0 -152
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/winterm.py +0 -169
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/__init__.py +0 -23
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/compat.py +0 -1116
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/database.py +0 -1345
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/index.py +0 -509
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/locators.py +0 -1300
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/manifest.py +0 -393
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/markers.py +0 -152
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/metadata.py +0 -1058
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/resources.py +0 -358
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/scripts.py +0 -429
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/util.py +0 -1932
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/version.py +0 -739
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/wheel.py +0 -1053
- package/venv/lib/python3.10/site-packages/pip/_vendor/distro.py +0 -1386
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/__init__.py +0 -35
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_ihatexml.py +0 -289
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_inputstream.py +0 -918
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_tokenizer.py +0 -1735
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/__init__.py +0 -5
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/_base.py +0 -40
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/py.py +0 -67
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_utils.py +0 -159
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/constants.py +0 -2946
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +0 -29
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/base.py +0 -12
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +0 -73
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/lint.py +0 -93
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +0 -207
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +0 -916
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/whitespace.py +0 -38
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/html5parser.py +0 -2795
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/serializer.py +0 -409
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +0 -30
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +0 -50
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +0 -88
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/base.py +0 -417
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +0 -239
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +0 -343
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +0 -392
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +0 -154
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/base.py +0 -252
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +0 -131
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/etree_lxml.py +0 -215
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/genshi.py +0 -69
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/__init__.py +0 -44
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/codec.py +0 -112
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/compat.py +0 -13
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/core.py +0 -397
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/idnadata.py +0 -2137
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/intranges.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/package_data.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/uts46data.py +0 -8512
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/__init__.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/_version.py +0 -1
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/exceptions.py +0 -48
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/ext.py +0 -193
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/fallback.py +0 -1012
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/__about__.py +0 -26
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/__init__.py +0 -25
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_manylinux.py +0 -301
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_musllinux.py +0 -136
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_structures.py +0 -61
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/markers.py +0 -304
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/requirements.py +0 -146
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/specifiers.py +0 -802
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/tags.py +0 -487
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/utils.py +0 -136
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/version.py +0 -504
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/__init__.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/build.py +0 -127
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/check.py +0 -207
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/colorlog.py +0 -115
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/compat.py +0 -51
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/dirtools.py +0 -44
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/envbuild.py +0 -171
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/__init__.py +0 -17
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py +0 -363
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/meta.py +0 -92
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py +0 -375
- package/venv/lib/python3.10/site-packages/pip/_vendor/pkg_resources/__init__.py +0 -3296
- package/venv/lib/python3.10/site-packages/pip/_vendor/pkg_resources/py31compat.py +0 -23
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/__init__.py +0 -331
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/__main__.py +0 -46
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/android.py +0 -119
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/api.py +0 -156
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/macos.py +0 -64
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/unix.py +0 -181
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/version.py +0 -4
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/windows.py +0 -182
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/__init__.py +0 -189
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/bar.py +0 -93
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/colors.py +0 -79
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/counter.py +0 -47
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/spinner.py +0 -45
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/__init__.py +0 -83
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/__main__.py +0 -17
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/cmdline.py +0 -663
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/console.py +0 -70
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/filter.py +0 -71
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/filters/__init__.py +0 -937
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatter.py +0 -94
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/__init__.py +0 -153
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/_mapping.py +0 -84
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/bbcode.py +0 -108
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/groff.py +0 -168
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/html.py +0 -983
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/img.py +0 -641
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/irc.py +0 -179
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/latex.py +0 -511
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/other.py +0 -161
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/pangomarkup.py +0 -83
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/rtf.py +0 -146
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/svg.py +0 -188
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/terminal.py +0 -127
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/terminal256.py +0 -338
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexer.py +0 -879
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/__init__.py +0 -341
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/_mapping.py +0 -580
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/python.py +0 -1188
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/modeline.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/plugin.py +0 -69
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/regexopt.py +0 -91
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/scanner.py +0 -104
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/sphinxext.py +0 -155
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/style.py +0 -197
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/styles/__init__.py +0 -93
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/token.py +0 -212
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/unistring.py +0 -153
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/util.py +0 -308
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/__init__.py +0 -328
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/actions.py +0 -207
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/common.py +0 -424
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/core.py +0 -5789
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/diagram/__init__.py +0 -593
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/exceptions.py +0 -267
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/helpers.py +0 -1069
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/results.py +0 -760
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/testing.py +0 -331
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/unicode.py +0 -332
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/util.py +0 -235
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/__init__.py +0 -154
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/__version__.py +0 -14
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/_internal_utils.py +0 -42
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/adapters.py +0 -538
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/api.py +0 -159
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/auth.py +0 -305
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/certs.py +0 -18
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/compat.py +0 -77
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/cookies.py +0 -549
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/exceptions.py +0 -133
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/help.py +0 -132
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/hooks.py +0 -34
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/models.py +0 -973
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/packages.py +0 -16
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/sessions.py +0 -771
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/status_codes.py +0 -123
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/structures.py +0 -105
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/utils.py +0 -1060
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/__init__.py +0 -26
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/compat/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/providers.py +0 -133
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/reporters.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py +0 -482
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py +0 -165
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/__init__.py +0 -172
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/__main__.py +0 -280
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_cell_widths.py +0 -451
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_emoji_codes.py +0 -3610
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_emoji_replace.py +0 -32
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_extension.py +0 -10
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_inspect.py +0 -210
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_log_render.py +0 -94
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_loop.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_lru_cache.py +0 -34
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_palettes.py +0 -309
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_pick.py +0 -17
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_ratio.py +0 -160
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_spinners.py +0 -848
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_stack.py +0 -16
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_timer.py +0 -19
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_windows.py +0 -72
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_wrap.py +0 -55
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/abc.py +0 -33
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/align.py +0 -312
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/ansi.py +0 -228
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/bar.py +0 -94
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/box.py +0 -483
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/cells.py +0 -147
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/color.py +0 -581
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/color_triplet.py +0 -38
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/columns.py +0 -187
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/console.py +0 -2211
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/constrain.py +0 -37
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/containers.py +0 -167
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/control.py +0 -175
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/default_styles.py +0 -183
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/diagnose.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/emoji.py +0 -96
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/errors.py +0 -34
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/file_proxy.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/filesize.py +0 -89
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/highlighter.py +0 -147
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/json.py +0 -140
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/jupyter.py +0 -92
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/layout.py +0 -444
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/live.py +0 -365
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/live_render.py +0 -113
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/logging.py +0 -268
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/markup.py +0 -244
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/measure.py +0 -149
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/padding.py +0 -141
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/pager.py +0 -34
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/palette.py +0 -100
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/panel.py +0 -250
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/pretty.py +0 -903
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/progress.py +0 -1036
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/progress_bar.py +0 -216
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/prompt.py +0 -376
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/protocol.py +0 -42
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/region.py +0 -10
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/repr.py +0 -151
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/rule.py +0 -115
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/scope.py +0 -86
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/screen.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/segment.py +0 -720
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/spinner.py +0 -134
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/status.py +0 -132
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/style.py +0 -785
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/styled.py +0 -42
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/syntax.py +0 -735
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/table.py +0 -968
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/tabulate.py +0 -51
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/terminal_theme.py +0 -55
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/text.py +0 -1282
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/theme.py +0 -112
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/themes.py +0 -5
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/traceback.py +0 -678
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/tree.py +0 -249
- package/venv/lib/python3.10/site-packages/pip/_vendor/six.py +0 -998
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/__init__.py +0 -517
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/_asyncio.py +0 -92
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/_utils.py +0 -68
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/after.py +0 -46
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/before.py +0 -41
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/before_sleep.py +0 -58
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/nap.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/retry.py +0 -213
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/stop.py +0 -96
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/tornadoweb.py +0 -59
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/wait.py +0 -191
- package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/__init__.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/_parser.py +0 -703
- package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/_re.py +0 -83
- package/venv/lib/python3.10/site-packages/pip/_vendor/typing_extensions.py +0 -2296
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/__init__.py +0 -85
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/_collections.py +0 -355
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/_version.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/connection.py +0 -569
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/connectionpool.py +0 -1113
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +0 -36
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +0 -519
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +0 -397
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/appengine.py +0 -314
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +0 -130
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +0 -511
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +0 -922
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/socks.py +0 -216
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/exceptions.py +0 -323
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/fields.py +0 -274
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/filepost.py +0 -98
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +0 -51
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/six.py +0 -1077
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/poolmanager.py +0 -539
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/request.py +0 -170
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py +0 -821
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/__init__.py +0 -49
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/connection.py +0 -149
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/proxy.py +0 -57
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/queue.py +0 -22
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/request.py +0 -143
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/response.py +0 -107
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/retry.py +0 -622
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssl_.py +0 -495
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +0 -161
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssltransport.py +0 -221
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/timeout.py +0 -268
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/url.py +0 -432
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/wait.py +0 -153
- package/venv/lib/python3.10/site-packages/pip/_vendor/vendor.txt +0 -25
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/__init__.py +0 -342
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/labels.py +0 -231
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/mklabels.py +0 -59
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/tests.py +0 -153
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/x_user_defined.py +0 -325
- package/venv/lib/python3.10/site-packages/pip/py.typed +0 -4
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/LICENSE.txt +0 -20
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/METADATA +0 -92
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/RECORD +0 -1037
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/entry_points.txt +0 -5
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/pkg_resources/__init__.py +0 -3303
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/appdirs.py +0 -608
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__about__.py +0 -26
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__init__.py +0 -25
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_manylinux.py +0 -301
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_musllinux.py +0 -136
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_structures.py +0 -67
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/markers.py +0 -304
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/requirements.py +0 -146
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/specifiers.py +0 -828
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/tags.py +0 -484
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/utils.py +0 -136
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py +0 -504
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/pyparsing.py +0 -5742
- package/venv/lib/python3.10/site-packages/pkg_resources/extern/__init__.py +0 -73
- package/venv/lib/python3.10/site-packages/pkg_resources/tests/data/my-test-package-source/setup.py +0 -6
- package/venv/lib/python3.10/site-packages/propcache/__init__.py +0 -32
- package/venv/lib/python3.10/site-packages/propcache/_helpers.py +0 -39
- package/venv/lib/python3.10/site-packages/propcache/_helpers_c.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/propcache/_helpers_c.pyx +0 -84
- package/venv/lib/python3.10/site-packages/propcache/_helpers_py.py +0 -56
- package/venv/lib/python3.10/site-packages/propcache/api.py +0 -8
- package/venv/lib/python3.10/site-packages/propcache/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/LICENSE +0 -202
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/METADATA +0 -275
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/NOTICE +0 -13
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/RECORD +0 -18
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/pycparser/__init__.py +0 -93
- package/venv/lib/python3.10/site-packages/pycparser/_ast_gen.py +0 -336
- package/venv/lib/python3.10/site-packages/pycparser/_build_tables.py +0 -40
- package/venv/lib/python3.10/site-packages/pycparser/_c_ast.cfg +0 -195
- package/venv/lib/python3.10/site-packages/pycparser/ast_transforms.py +0 -164
- package/venv/lib/python3.10/site-packages/pycparser/c_ast.py +0 -1125
- package/venv/lib/python3.10/site-packages/pycparser/c_generator.py +0 -502
- package/venv/lib/python3.10/site-packages/pycparser/c_lexer.py +0 -555
- package/venv/lib/python3.10/site-packages/pycparser/c_parser.py +0 -1950
- package/venv/lib/python3.10/site-packages/pycparser/lextab.py +0 -10
- package/venv/lib/python3.10/site-packages/pycparser/ply/__init__.py +0 -5
- package/venv/lib/python3.10/site-packages/pycparser/ply/cpp.py +0 -905
- package/venv/lib/python3.10/site-packages/pycparser/ply/ctokens.py +0 -133
- package/venv/lib/python3.10/site-packages/pycparser/ply/lex.py +0 -1099
- package/venv/lib/python3.10/site-packages/pycparser/ply/yacc.py +0 -3494
- package/venv/lib/python3.10/site-packages/pycparser/ply/ygen.py +0 -74
- package/venv/lib/python3.10/site-packages/pycparser/plyparser.py +0 -133
- package/venv/lib/python3.10/site-packages/pycparser/yacctab.py +0 -369
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/LICENSE +0 -27
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/METADATA +0 -28
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/RECORD +0 -41
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/pyparsing/__init__.py +0 -326
- package/venv/lib/python3.10/site-packages/pyparsing/actions.py +0 -219
- package/venv/lib/python3.10/site-packages/pyparsing/common.py +0 -434
- package/venv/lib/python3.10/site-packages/pyparsing/core.py +0 -6226
- package/venv/lib/python3.10/site-packages/pyparsing/diagram/__init__.py +0 -744
- package/venv/lib/python3.10/site-packages/pyparsing/exceptions.py +0 -314
- package/venv/lib/python3.10/site-packages/pyparsing/helpers.py +0 -1102
- package/venv/lib/python3.10/site-packages/pyparsing/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/pyparsing/results.py +0 -816
- package/venv/lib/python3.10/site-packages/pyparsing/testing.py +0 -362
- package/venv/lib/python3.10/site-packages/pyparsing/unicode.py +0 -356
- package/venv/lib/python3.10/site-packages/pyparsing/util.py +0 -398
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/LICENSE +0 -18
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/METADATA +0 -124
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/RECORD +0 -28
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/requests/__init__.py +0 -184
- package/venv/lib/python3.10/site-packages/requests/__version__.py +0 -14
- package/venv/lib/python3.10/site-packages/requests/_internal_utils.py +0 -50
- package/venv/lib/python3.10/site-packages/requests/adapters.py +0 -719
- package/venv/lib/python3.10/site-packages/requests/api.py +0 -157
- package/venv/lib/python3.10/site-packages/requests/auth.py +0 -314
- package/venv/lib/python3.10/site-packages/requests/certs.py +0 -17
- package/venv/lib/python3.10/site-packages/requests/compat.py +0 -94
- package/venv/lib/python3.10/site-packages/requests/cookies.py +0 -561
- package/venv/lib/python3.10/site-packages/requests/exceptions.py +0 -151
- package/venv/lib/python3.10/site-packages/requests/help.py +0 -134
- package/venv/lib/python3.10/site-packages/requests/hooks.py +0 -33
- package/venv/lib/python3.10/site-packages/requests/models.py +0 -1037
- package/venv/lib/python3.10/site-packages/requests/packages.py +0 -23
- package/venv/lib/python3.10/site-packages/requests/sessions.py +0 -831
- package/venv/lib/python3.10/site-packages/requests/status_codes.py +0 -128
- package/venv/lib/python3.10/site-packages/requests/structures.py +0 -99
- package/venv/lib/python3.10/site-packages/requests/utils.py +0 -1096
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/LICENSE +0 -175
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/METADATA +0 -119
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/RECORD +0 -43
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/requests_toolbelt/__init__.py +0 -34
- package/venv/lib/python3.10/site-packages/requests_toolbelt/_compat.py +0 -302
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/__init__.py +0 -15
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/appengine.py +0 -206
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/fingerprint.py +0 -48
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/host_header_ssl.py +0 -43
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/socket_options.py +0 -129
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/source.py +0 -67
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/ssl.py +0 -66
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/x509.py +0 -196
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/_digest_auth_compat.py +0 -29
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/guess.py +0 -146
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/handler.py +0 -142
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/http_proxy_digest.py +0 -103
- package/venv/lib/python3.10/site-packages/requests_toolbelt/cookies/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/cookies/forgetful.py +0 -7
- package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/stream.py +0 -176
- package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/tee.py +0 -123
- package/venv/lib/python3.10/site-packages/requests_toolbelt/exceptions.py +0 -25
- package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/__init__.py +0 -31
- package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/decoder.py +0 -156
- package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/encoder.py +0 -655
- package/venv/lib/python3.10/site-packages/requests_toolbelt/sessions.py +0 -89
- package/venv/lib/python3.10/site-packages/requests_toolbelt/streaming_iterator.py +0 -116
- package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/__init__.py +0 -97
- package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/pool.py +0 -211
- package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/thread.py +0 -53
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/deprecated.py +0 -91
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/dump.py +0 -198
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/formdata.py +0 -108
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/user_agent.py +0 -143
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/AUTHORS.rst +0 -57
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/LICENSE +0 -13
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/METADATA +0 -521
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/RECORD +0 -75
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/__init__.py +0 -1
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/_scrypted_arlo_go.cpython-310-x86_64-linux-gnu.h +0 -555
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/_scrypted_arlo_go.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/build.py +0 -344
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/go.py +0 -2215
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.c +0 -6019
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.go +0 -3612
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.py +0 -1910
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go_go.h +0 -555
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/METADATA +0 -11
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/RECORD +0 -19
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/WHEEL +0 -8
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/setuptools/__init__.py +0 -242
- package/venv/lib/python3.10/site-packages/setuptools/_deprecation_warning.py +0 -7
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/__init__.py +0 -24
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/_msvccompiler.py +0 -561
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/archive_util.py +0 -256
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/bcppcompiler.py +0 -393
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py +0 -1123
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py +0 -403
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/__init__.py +0 -31
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist.py +0 -143
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_dumb.py +0 -123
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_msi.py +0 -749
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_rpm.py +0 -579
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_wininst.py +0 -377
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build.py +0 -157
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_clib.py +0 -209
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py +0 -755
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_py.py +0 -392
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_scripts.py +0 -152
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/check.py +0 -148
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/clean.py +0 -76
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/config.py +0 -344
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install.py +0 -721
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_data.py +0 -79
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_egg_info.py +0 -84
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_headers.py +0 -47
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_lib.py +0 -217
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_scripts.py +0 -60
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/py37compat.py +0 -30
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/register.py +0 -304
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py +0 -494
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/upload.py +0 -214
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/config.py +0 -130
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/core.py +0 -249
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/cygwinccompiler.py +0 -425
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/debug.py +0 -5
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/dep_util.py +0 -92
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/dir_util.py +0 -210
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py +0 -1257
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/errors.py +0 -97
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/extension.py +0 -240
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/fancy_getopt.py +0 -457
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/file_util.py +0 -238
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/filelist.py +0 -355
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/log.py +0 -77
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/msvc9compiler.py +0 -788
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/msvccompiler.py +0 -643
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/py35compat.py +0 -19
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/py38compat.py +0 -7
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/spawn.py +0 -106
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/sysconfig.py +0 -601
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/text_file.py +0 -286
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py +0 -325
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/util.py +0 -548
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/version.py +0 -363
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/versionpredicate.py +0 -169
- package/venv/lib/python3.10/site-packages/setuptools/_imp.py +0 -82
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/__init__.py +0 -4
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/more.py +0 -3825
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/recipes.py +0 -620
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/ordered_set.py +0 -488
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/__about__.py +0 -26
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/__init__.py +0 -25
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_manylinux.py +0 -301
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_musllinux.py +0 -136
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_structures.py +0 -67
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/markers.py +0 -304
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/requirements.py +0 -146
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/specifiers.py +0 -828
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/tags.py +0 -484
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/utils.py +0 -136
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/version.py +0 -504
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/pyparsing.py +0 -5742
- package/venv/lib/python3.10/site-packages/setuptools/archive_util.py +0 -205
- package/venv/lib/python3.10/site-packages/setuptools/build_meta.py +0 -290
- package/venv/lib/python3.10/site-packages/setuptools/cli-32.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/cli-64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/cli-arm64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/cli.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/__init__.py +0 -8
- package/venv/lib/python3.10/site-packages/setuptools/command/alias.py +0 -78
- package/venv/lib/python3.10/site-packages/setuptools/command/bdist_egg.py +0 -456
- package/venv/lib/python3.10/site-packages/setuptools/command/bdist_rpm.py +0 -40
- package/venv/lib/python3.10/site-packages/setuptools/command/build_clib.py +0 -101
- package/venv/lib/python3.10/site-packages/setuptools/command/build_ext.py +0 -328
- package/venv/lib/python3.10/site-packages/setuptools/command/build_py.py +0 -242
- package/venv/lib/python3.10/site-packages/setuptools/command/develop.py +0 -193
- package/venv/lib/python3.10/site-packages/setuptools/command/dist_info.py +0 -36
- package/venv/lib/python3.10/site-packages/setuptools/command/easy_install.py +0 -2354
- package/venv/lib/python3.10/site-packages/setuptools/command/egg_info.py +0 -755
- package/venv/lib/python3.10/site-packages/setuptools/command/install.py +0 -132
- package/venv/lib/python3.10/site-packages/setuptools/command/install_egg_info.py +0 -82
- package/venv/lib/python3.10/site-packages/setuptools/command/install_lib.py +0 -148
- package/venv/lib/python3.10/site-packages/setuptools/command/install_scripts.py +0 -69
- package/venv/lib/python3.10/site-packages/setuptools/command/launcher manifest.xml +0 -15
- package/venv/lib/python3.10/site-packages/setuptools/command/py36compat.py +0 -134
- package/venv/lib/python3.10/site-packages/setuptools/command/register.py +0 -18
- package/venv/lib/python3.10/site-packages/setuptools/command/rotate.py +0 -64
- package/venv/lib/python3.10/site-packages/setuptools/command/saveopts.py +0 -22
- package/venv/lib/python3.10/site-packages/setuptools/command/sdist.py +0 -196
- package/venv/lib/python3.10/site-packages/setuptools/command/setopt.py +0 -149
- package/venv/lib/python3.10/site-packages/setuptools/command/test.py +0 -252
- package/venv/lib/python3.10/site-packages/setuptools/command/upload.py +0 -17
- package/venv/lib/python3.10/site-packages/setuptools/command/upload_docs.py +0 -202
- package/venv/lib/python3.10/site-packages/setuptools/config.py +0 -751
- package/venv/lib/python3.10/site-packages/setuptools/dep_util.py +0 -25
- package/venv/lib/python3.10/site-packages/setuptools/depends.py +0 -176
- package/venv/lib/python3.10/site-packages/setuptools/dist.py +0 -1156
- package/venv/lib/python3.10/site-packages/setuptools/errors.py +0 -40
- package/venv/lib/python3.10/site-packages/setuptools/extension.py +0 -55
- package/venv/lib/python3.10/site-packages/setuptools/extern/__init__.py +0 -73
- package/venv/lib/python3.10/site-packages/setuptools/glob.py +0 -167
- package/venv/lib/python3.10/site-packages/setuptools/gui-32.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/gui-64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/gui-arm64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/gui.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/installer.py +0 -104
- package/venv/lib/python3.10/site-packages/setuptools/launch.py +0 -36
- package/venv/lib/python3.10/site-packages/setuptools/monkey.py +0 -177
- package/venv/lib/python3.10/site-packages/setuptools/msvc.py +0 -1805
- package/venv/lib/python3.10/site-packages/setuptools/namespaces.py +0 -107
- package/venv/lib/python3.10/site-packages/setuptools/package_index.py +0 -1150
- package/venv/lib/python3.10/site-packages/setuptools/py34compat.py +0 -13
- package/venv/lib/python3.10/site-packages/setuptools/sandbox.py +0 -530
- package/venv/lib/python3.10/site-packages/setuptools/script (dev).tmpl +0 -6
- package/venv/lib/python3.10/site-packages/setuptools/script.tmpl +0 -3
- package/venv/lib/python3.10/site-packages/setuptools/unicode_utils.py +0 -42
- package/venv/lib/python3.10/site-packages/setuptools/version.py +0 -6
- package/venv/lib/python3.10/site-packages/setuptools/wheel.py +0 -213
- package/venv/lib/python3.10/site-packages/setuptools/windows_support.py +0 -29
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/LICENSE +0 -19
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/METADATA +0 -125
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/RECORD +0 -298
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/entry_points.txt +0 -56
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/top_level.txt +0 -4
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/LICENSE +0 -18
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/METADATA +0 -43
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/RECORD +0 -8
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/six.py +0 -1003
- package/venv/lib/python3.10/site-packages/soupsieve/__init__.py +0 -168
- package/venv/lib/python3.10/site-packages/soupsieve/__meta__.py +0 -197
- package/venv/lib/python3.10/site-packages/soupsieve/css_match.py +0 -1582
- package/venv/lib/python3.10/site-packages/soupsieve/css_parser.py +0 -1289
- package/venv/lib/python3.10/site-packages/soupsieve/css_types.py +0 -407
- package/venv/lib/python3.10/site-packages/soupsieve/pretty.py +0 -139
- package/venv/lib/python3.10/site-packages/soupsieve/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/soupsieve/util.py +0 -117
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/METADATA +0 -114
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/RECORD +0 -20
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/licenses/LICENSE.md +0 -21
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/PKG-INFO +0 -98
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/SOURCES.txt +0 -12
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/dependency_links.txt +0 -1
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/installed-files.txt +0 -7
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/requires.txt +0 -2
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/sseclient.py +0 -165
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/LICENSE +0 -279
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/METADATA +0 -67
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/RECORD +0 -7
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/typing_extensions.py +0 -3641
- package/venv/lib/python3.10/site-packages/urllib3/__init__.py +0 -211
- package/venv/lib/python3.10/site-packages/urllib3/_base_connection.py +0 -165
- package/venv/lib/python3.10/site-packages/urllib3/_collections.py +0 -479
- package/venv/lib/python3.10/site-packages/urllib3/_request_methods.py +0 -278
- package/venv/lib/python3.10/site-packages/urllib3/_version.py +0 -16
- package/venv/lib/python3.10/site-packages/urllib3/connection.py +0 -1044
- package/venv/lib/python3.10/site-packages/urllib3/connectionpool.py +0 -1178
- package/venv/lib/python3.10/site-packages/urllib3/contrib/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/__init__.py +0 -16
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/connection.py +0 -255
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/emscripten_fetch_worker.js +0 -110
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/fetch.py +0 -708
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/request.py +0 -22
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/response.py +0 -285
- package/venv/lib/python3.10/site-packages/urllib3/contrib/pyopenssl.py +0 -554
- package/venv/lib/python3.10/site-packages/urllib3/contrib/socks.py +0 -228
- package/venv/lib/python3.10/site-packages/urllib3/exceptions.py +0 -327
- package/venv/lib/python3.10/site-packages/urllib3/fields.py +0 -341
- package/venv/lib/python3.10/site-packages/urllib3/filepost.py +0 -89
- package/venv/lib/python3.10/site-packages/urllib3/http2/__init__.py +0 -53
- package/venv/lib/python3.10/site-packages/urllib3/http2/connection.py +0 -356
- package/venv/lib/python3.10/site-packages/urllib3/http2/probe.py +0 -87
- package/venv/lib/python3.10/site-packages/urllib3/poolmanager.py +0 -637
- package/venv/lib/python3.10/site-packages/urllib3/py.typed +0 -2
- package/venv/lib/python3.10/site-packages/urllib3/response.py +0 -1278
- package/venv/lib/python3.10/site-packages/urllib3/util/__init__.py +0 -42
- package/venv/lib/python3.10/site-packages/urllib3/util/connection.py +0 -137
- package/venv/lib/python3.10/site-packages/urllib3/util/proxy.py +0 -43
- package/venv/lib/python3.10/site-packages/urllib3/util/request.py +0 -258
- package/venv/lib/python3.10/site-packages/urllib3/util/response.py +0 -101
- package/venv/lib/python3.10/site-packages/urllib3/util/retry.py +0 -533
- package/venv/lib/python3.10/site-packages/urllib3/util/ssl_.py +0 -504
- package/venv/lib/python3.10/site-packages/urllib3/util/ssl_match_hostname.py +0 -159
- package/venv/lib/python3.10/site-packages/urllib3/util/ssltransport.py +0 -271
- package/venv/lib/python3.10/site-packages/urllib3/util/timeout.py +0 -275
- package/venv/lib/python3.10/site-packages/urllib3/util/url.py +0 -469
- package/venv/lib/python3.10/site-packages/urllib3/util/util.py +0 -42
- package/venv/lib/python3.10/site-packages/urllib3/util/wait.py +0 -124
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/METADATA +0 -154
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/RECORD +0 -80
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/licenses/LICENSE.txt +0 -21
- package/venv/lib/python3.10/site-packages/yarl/__init__.py +0 -14
- package/venv/lib/python3.10/site-packages/yarl/_parse.py +0 -189
- package/venv/lib/python3.10/site-packages/yarl/_path.py +0 -41
- package/venv/lib/python3.10/site-packages/yarl/_query.py +0 -118
- package/venv/lib/python3.10/site-packages/yarl/_quoters.py +0 -32
- package/venv/lib/python3.10/site-packages/yarl/_quoting.py +0 -18
- package/venv/lib/python3.10/site-packages/yarl/_quoting_c.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/yarl/_quoting_c.pyi +0 -16
- package/venv/lib/python3.10/site-packages/yarl/_quoting_c.pyx +0 -423
- package/venv/lib/python3.10/site-packages/yarl/_quoting_py.py +0 -197
- package/venv/lib/python3.10/site-packages/yarl/_url.py +0 -1584
- package/venv/lib/python3.10/site-packages/yarl/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/LICENSE +0 -202
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/METADATA +0 -2279
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/NOTICE +0 -13
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/RECORD +0 -27
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/top_level.txt +0 -1
- package/venv/pyvenv.cfg +0 -3
|
@@ -1,2795 +0,0 @@
|
|
|
1
|
-
from __future__ import absolute_import, division, unicode_literals
|
|
2
|
-
from pip._vendor.six import with_metaclass, viewkeys
|
|
3
|
-
|
|
4
|
-
import types
|
|
5
|
-
|
|
6
|
-
from . import _inputstream
|
|
7
|
-
from . import _tokenizer
|
|
8
|
-
|
|
9
|
-
from . import treebuilders
|
|
10
|
-
from .treebuilders.base import Marker
|
|
11
|
-
|
|
12
|
-
from . import _utils
|
|
13
|
-
from .constants import (
|
|
14
|
-
spaceCharacters, asciiUpper2Lower,
|
|
15
|
-
specialElements, headingElements, cdataElements, rcdataElements,
|
|
16
|
-
tokenTypes, tagTokenTypes,
|
|
17
|
-
namespaces,
|
|
18
|
-
htmlIntegrationPointElements, mathmlTextIntegrationPointElements,
|
|
19
|
-
adjustForeignAttributes as adjustForeignAttributesMap,
|
|
20
|
-
adjustMathMLAttributes, adjustSVGAttributes,
|
|
21
|
-
E,
|
|
22
|
-
_ReparseException
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def parse(doc, treebuilder="etree", namespaceHTMLElements=True, **kwargs):
|
|
27
|
-
"""Parse an HTML document as a string or file-like object into a tree
|
|
28
|
-
|
|
29
|
-
:arg doc: the document to parse as a string or file-like object
|
|
30
|
-
|
|
31
|
-
:arg treebuilder: the treebuilder to use when parsing
|
|
32
|
-
|
|
33
|
-
:arg namespaceHTMLElements: whether or not to namespace HTML elements
|
|
34
|
-
|
|
35
|
-
:returns: parsed tree
|
|
36
|
-
|
|
37
|
-
Example:
|
|
38
|
-
|
|
39
|
-
>>> from html5lib.html5parser import parse
|
|
40
|
-
>>> parse('<html><body><p>This is a doc</p></body></html>')
|
|
41
|
-
<Element u'{http://www.w3.org/1999/xhtml}html' at 0x7feac4909db0>
|
|
42
|
-
|
|
43
|
-
"""
|
|
44
|
-
tb = treebuilders.getTreeBuilder(treebuilder)
|
|
45
|
-
p = HTMLParser(tb, namespaceHTMLElements=namespaceHTMLElements)
|
|
46
|
-
return p.parse(doc, **kwargs)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
def parseFragment(doc, container="div", treebuilder="etree", namespaceHTMLElements=True, **kwargs):
|
|
50
|
-
"""Parse an HTML fragment as a string or file-like object into a tree
|
|
51
|
-
|
|
52
|
-
:arg doc: the fragment to parse as a string or file-like object
|
|
53
|
-
|
|
54
|
-
:arg container: the container context to parse the fragment in
|
|
55
|
-
|
|
56
|
-
:arg treebuilder: the treebuilder to use when parsing
|
|
57
|
-
|
|
58
|
-
:arg namespaceHTMLElements: whether or not to namespace HTML elements
|
|
59
|
-
|
|
60
|
-
:returns: parsed tree
|
|
61
|
-
|
|
62
|
-
Example:
|
|
63
|
-
|
|
64
|
-
>>> from html5lib.html5libparser import parseFragment
|
|
65
|
-
>>> parseFragment('<b>this is a fragment</b>')
|
|
66
|
-
<Element u'DOCUMENT_FRAGMENT' at 0x7feac484b090>
|
|
67
|
-
|
|
68
|
-
"""
|
|
69
|
-
tb = treebuilders.getTreeBuilder(treebuilder)
|
|
70
|
-
p = HTMLParser(tb, namespaceHTMLElements=namespaceHTMLElements)
|
|
71
|
-
return p.parseFragment(doc, container=container, **kwargs)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
def method_decorator_metaclass(function):
|
|
75
|
-
class Decorated(type):
|
|
76
|
-
def __new__(meta, classname, bases, classDict):
|
|
77
|
-
for attributeName, attribute in classDict.items():
|
|
78
|
-
if isinstance(attribute, types.FunctionType):
|
|
79
|
-
attribute = function(attribute)
|
|
80
|
-
|
|
81
|
-
classDict[attributeName] = attribute
|
|
82
|
-
return type.__new__(meta, classname, bases, classDict)
|
|
83
|
-
return Decorated
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
class HTMLParser(object):
|
|
87
|
-
"""HTML parser
|
|
88
|
-
|
|
89
|
-
Generates a tree structure from a stream of (possibly malformed) HTML.
|
|
90
|
-
|
|
91
|
-
"""
|
|
92
|
-
|
|
93
|
-
def __init__(self, tree=None, strict=False, namespaceHTMLElements=True, debug=False):
|
|
94
|
-
"""
|
|
95
|
-
:arg tree: a treebuilder class controlling the type of tree that will be
|
|
96
|
-
returned. Built in treebuilders can be accessed through
|
|
97
|
-
html5lib.treebuilders.getTreeBuilder(treeType)
|
|
98
|
-
|
|
99
|
-
:arg strict: raise an exception when a parse error is encountered
|
|
100
|
-
|
|
101
|
-
:arg namespaceHTMLElements: whether or not to namespace HTML elements
|
|
102
|
-
|
|
103
|
-
:arg debug: whether or not to enable debug mode which logs things
|
|
104
|
-
|
|
105
|
-
Example:
|
|
106
|
-
|
|
107
|
-
>>> from html5lib.html5parser import HTMLParser
|
|
108
|
-
>>> parser = HTMLParser() # generates parser with etree builder
|
|
109
|
-
>>> parser = HTMLParser('lxml', strict=True) # generates parser with lxml builder which is strict
|
|
110
|
-
|
|
111
|
-
"""
|
|
112
|
-
|
|
113
|
-
# Raise an exception on the first error encountered
|
|
114
|
-
self.strict = strict
|
|
115
|
-
|
|
116
|
-
if tree is None:
|
|
117
|
-
tree = treebuilders.getTreeBuilder("etree")
|
|
118
|
-
self.tree = tree(namespaceHTMLElements)
|
|
119
|
-
self.errors = []
|
|
120
|
-
|
|
121
|
-
self.phases = {name: cls(self, self.tree) for name, cls in
|
|
122
|
-
getPhases(debug).items()}
|
|
123
|
-
|
|
124
|
-
def _parse(self, stream, innerHTML=False, container="div", scripting=False, **kwargs):
|
|
125
|
-
|
|
126
|
-
self.innerHTMLMode = innerHTML
|
|
127
|
-
self.container = container
|
|
128
|
-
self.scripting = scripting
|
|
129
|
-
self.tokenizer = _tokenizer.HTMLTokenizer(stream, parser=self, **kwargs)
|
|
130
|
-
self.reset()
|
|
131
|
-
|
|
132
|
-
try:
|
|
133
|
-
self.mainLoop()
|
|
134
|
-
except _ReparseException:
|
|
135
|
-
self.reset()
|
|
136
|
-
self.mainLoop()
|
|
137
|
-
|
|
138
|
-
def reset(self):
|
|
139
|
-
self.tree.reset()
|
|
140
|
-
self.firstStartTag = False
|
|
141
|
-
self.errors = []
|
|
142
|
-
self.log = [] # only used with debug mode
|
|
143
|
-
# "quirks" / "limited quirks" / "no quirks"
|
|
144
|
-
self.compatMode = "no quirks"
|
|
145
|
-
|
|
146
|
-
if self.innerHTMLMode:
|
|
147
|
-
self.innerHTML = self.container.lower()
|
|
148
|
-
|
|
149
|
-
if self.innerHTML in cdataElements:
|
|
150
|
-
self.tokenizer.state = self.tokenizer.rcdataState
|
|
151
|
-
elif self.innerHTML in rcdataElements:
|
|
152
|
-
self.tokenizer.state = self.tokenizer.rawtextState
|
|
153
|
-
elif self.innerHTML == 'plaintext':
|
|
154
|
-
self.tokenizer.state = self.tokenizer.plaintextState
|
|
155
|
-
else:
|
|
156
|
-
# state already is data state
|
|
157
|
-
# self.tokenizer.state = self.tokenizer.dataState
|
|
158
|
-
pass
|
|
159
|
-
self.phase = self.phases["beforeHtml"]
|
|
160
|
-
self.phase.insertHtmlElement()
|
|
161
|
-
self.resetInsertionMode()
|
|
162
|
-
else:
|
|
163
|
-
self.innerHTML = False # pylint:disable=redefined-variable-type
|
|
164
|
-
self.phase = self.phases["initial"]
|
|
165
|
-
|
|
166
|
-
self.lastPhase = None
|
|
167
|
-
|
|
168
|
-
self.beforeRCDataPhase = None
|
|
169
|
-
|
|
170
|
-
self.framesetOK = True
|
|
171
|
-
|
|
172
|
-
@property
|
|
173
|
-
def documentEncoding(self):
|
|
174
|
-
"""Name of the character encoding that was used to decode the input stream, or
|
|
175
|
-
:obj:`None` if that is not determined yet
|
|
176
|
-
|
|
177
|
-
"""
|
|
178
|
-
if not hasattr(self, 'tokenizer'):
|
|
179
|
-
return None
|
|
180
|
-
return self.tokenizer.stream.charEncoding[0].name
|
|
181
|
-
|
|
182
|
-
def isHTMLIntegrationPoint(self, element):
|
|
183
|
-
if (element.name == "annotation-xml" and
|
|
184
|
-
element.namespace == namespaces["mathml"]):
|
|
185
|
-
return ("encoding" in element.attributes and
|
|
186
|
-
element.attributes["encoding"].translate(
|
|
187
|
-
asciiUpper2Lower) in
|
|
188
|
-
("text/html", "application/xhtml+xml"))
|
|
189
|
-
else:
|
|
190
|
-
return (element.namespace, element.name) in htmlIntegrationPointElements
|
|
191
|
-
|
|
192
|
-
def isMathMLTextIntegrationPoint(self, element):
|
|
193
|
-
return (element.namespace, element.name) in mathmlTextIntegrationPointElements
|
|
194
|
-
|
|
195
|
-
def mainLoop(self):
|
|
196
|
-
CharactersToken = tokenTypes["Characters"]
|
|
197
|
-
SpaceCharactersToken = tokenTypes["SpaceCharacters"]
|
|
198
|
-
StartTagToken = tokenTypes["StartTag"]
|
|
199
|
-
EndTagToken = tokenTypes["EndTag"]
|
|
200
|
-
CommentToken = tokenTypes["Comment"]
|
|
201
|
-
DoctypeToken = tokenTypes["Doctype"]
|
|
202
|
-
ParseErrorToken = tokenTypes["ParseError"]
|
|
203
|
-
|
|
204
|
-
for token in self.tokenizer:
|
|
205
|
-
prev_token = None
|
|
206
|
-
new_token = token
|
|
207
|
-
while new_token is not None:
|
|
208
|
-
prev_token = new_token
|
|
209
|
-
currentNode = self.tree.openElements[-1] if self.tree.openElements else None
|
|
210
|
-
currentNodeNamespace = currentNode.namespace if currentNode else None
|
|
211
|
-
currentNodeName = currentNode.name if currentNode else None
|
|
212
|
-
|
|
213
|
-
type = new_token["type"]
|
|
214
|
-
|
|
215
|
-
if type == ParseErrorToken:
|
|
216
|
-
self.parseError(new_token["data"], new_token.get("datavars", {}))
|
|
217
|
-
new_token = None
|
|
218
|
-
else:
|
|
219
|
-
if (len(self.tree.openElements) == 0 or
|
|
220
|
-
currentNodeNamespace == self.tree.defaultNamespace or
|
|
221
|
-
(self.isMathMLTextIntegrationPoint(currentNode) and
|
|
222
|
-
((type == StartTagToken and
|
|
223
|
-
token["name"] not in frozenset(["mglyph", "malignmark"])) or
|
|
224
|
-
type in (CharactersToken, SpaceCharactersToken))) or
|
|
225
|
-
(currentNodeNamespace == namespaces["mathml"] and
|
|
226
|
-
currentNodeName == "annotation-xml" and
|
|
227
|
-
type == StartTagToken and
|
|
228
|
-
token["name"] == "svg") or
|
|
229
|
-
(self.isHTMLIntegrationPoint(currentNode) and
|
|
230
|
-
type in (StartTagToken, CharactersToken, SpaceCharactersToken))):
|
|
231
|
-
phase = self.phase
|
|
232
|
-
else:
|
|
233
|
-
phase = self.phases["inForeignContent"]
|
|
234
|
-
|
|
235
|
-
if type == CharactersToken:
|
|
236
|
-
new_token = phase.processCharacters(new_token)
|
|
237
|
-
elif type == SpaceCharactersToken:
|
|
238
|
-
new_token = phase.processSpaceCharacters(new_token)
|
|
239
|
-
elif type == StartTagToken:
|
|
240
|
-
new_token = phase.processStartTag(new_token)
|
|
241
|
-
elif type == EndTagToken:
|
|
242
|
-
new_token = phase.processEndTag(new_token)
|
|
243
|
-
elif type == CommentToken:
|
|
244
|
-
new_token = phase.processComment(new_token)
|
|
245
|
-
elif type == DoctypeToken:
|
|
246
|
-
new_token = phase.processDoctype(new_token)
|
|
247
|
-
|
|
248
|
-
if (type == StartTagToken and prev_token["selfClosing"] and
|
|
249
|
-
not prev_token["selfClosingAcknowledged"]):
|
|
250
|
-
self.parseError("non-void-element-with-trailing-solidus",
|
|
251
|
-
{"name": prev_token["name"]})
|
|
252
|
-
|
|
253
|
-
# When the loop finishes it's EOF
|
|
254
|
-
reprocess = True
|
|
255
|
-
phases = []
|
|
256
|
-
while reprocess:
|
|
257
|
-
phases.append(self.phase)
|
|
258
|
-
reprocess = self.phase.processEOF()
|
|
259
|
-
if reprocess:
|
|
260
|
-
assert self.phase not in phases
|
|
261
|
-
|
|
262
|
-
def parse(self, stream, *args, **kwargs):
|
|
263
|
-
"""Parse a HTML document into a well-formed tree
|
|
264
|
-
|
|
265
|
-
:arg stream: a file-like object or string containing the HTML to be parsed
|
|
266
|
-
|
|
267
|
-
The optional encoding parameter must be a string that indicates
|
|
268
|
-
the encoding. If specified, that encoding will be used,
|
|
269
|
-
regardless of any BOM or later declaration (such as in a meta
|
|
270
|
-
element).
|
|
271
|
-
|
|
272
|
-
:arg scripting: treat noscript elements as if JavaScript was turned on
|
|
273
|
-
|
|
274
|
-
:returns: parsed tree
|
|
275
|
-
|
|
276
|
-
Example:
|
|
277
|
-
|
|
278
|
-
>>> from html5lib.html5parser import HTMLParser
|
|
279
|
-
>>> parser = HTMLParser()
|
|
280
|
-
>>> parser.parse('<html><body><p>This is a doc</p></body></html>')
|
|
281
|
-
<Element u'{http://www.w3.org/1999/xhtml}html' at 0x7feac4909db0>
|
|
282
|
-
|
|
283
|
-
"""
|
|
284
|
-
self._parse(stream, False, None, *args, **kwargs)
|
|
285
|
-
return self.tree.getDocument()
|
|
286
|
-
|
|
287
|
-
def parseFragment(self, stream, *args, **kwargs):
|
|
288
|
-
"""Parse a HTML fragment into a well-formed tree fragment
|
|
289
|
-
|
|
290
|
-
:arg container: name of the element we're setting the innerHTML
|
|
291
|
-
property if set to None, default to 'div'
|
|
292
|
-
|
|
293
|
-
:arg stream: a file-like object or string containing the HTML to be parsed
|
|
294
|
-
|
|
295
|
-
The optional encoding parameter must be a string that indicates
|
|
296
|
-
the encoding. If specified, that encoding will be used,
|
|
297
|
-
regardless of any BOM or later declaration (such as in a meta
|
|
298
|
-
element)
|
|
299
|
-
|
|
300
|
-
:arg scripting: treat noscript elements as if JavaScript was turned on
|
|
301
|
-
|
|
302
|
-
:returns: parsed tree
|
|
303
|
-
|
|
304
|
-
Example:
|
|
305
|
-
|
|
306
|
-
>>> from html5lib.html5libparser import HTMLParser
|
|
307
|
-
>>> parser = HTMLParser()
|
|
308
|
-
>>> parser.parseFragment('<b>this is a fragment</b>')
|
|
309
|
-
<Element u'DOCUMENT_FRAGMENT' at 0x7feac484b090>
|
|
310
|
-
|
|
311
|
-
"""
|
|
312
|
-
self._parse(stream, True, *args, **kwargs)
|
|
313
|
-
return self.tree.getFragment()
|
|
314
|
-
|
|
315
|
-
def parseError(self, errorcode="XXX-undefined-error", datavars=None):
|
|
316
|
-
# XXX The idea is to make errorcode mandatory.
|
|
317
|
-
if datavars is None:
|
|
318
|
-
datavars = {}
|
|
319
|
-
self.errors.append((self.tokenizer.stream.position(), errorcode, datavars))
|
|
320
|
-
if self.strict:
|
|
321
|
-
raise ParseError(E[errorcode] % datavars)
|
|
322
|
-
|
|
323
|
-
def adjustMathMLAttributes(self, token):
|
|
324
|
-
adjust_attributes(token, adjustMathMLAttributes)
|
|
325
|
-
|
|
326
|
-
def adjustSVGAttributes(self, token):
|
|
327
|
-
adjust_attributes(token, adjustSVGAttributes)
|
|
328
|
-
|
|
329
|
-
def adjustForeignAttributes(self, token):
|
|
330
|
-
adjust_attributes(token, adjustForeignAttributesMap)
|
|
331
|
-
|
|
332
|
-
def reparseTokenNormal(self, token):
|
|
333
|
-
# pylint:disable=unused-argument
|
|
334
|
-
self.parser.phase()
|
|
335
|
-
|
|
336
|
-
def resetInsertionMode(self):
|
|
337
|
-
# The name of this method is mostly historical. (It's also used in the
|
|
338
|
-
# specification.)
|
|
339
|
-
last = False
|
|
340
|
-
newModes = {
|
|
341
|
-
"select": "inSelect",
|
|
342
|
-
"td": "inCell",
|
|
343
|
-
"th": "inCell",
|
|
344
|
-
"tr": "inRow",
|
|
345
|
-
"tbody": "inTableBody",
|
|
346
|
-
"thead": "inTableBody",
|
|
347
|
-
"tfoot": "inTableBody",
|
|
348
|
-
"caption": "inCaption",
|
|
349
|
-
"colgroup": "inColumnGroup",
|
|
350
|
-
"table": "inTable",
|
|
351
|
-
"head": "inBody",
|
|
352
|
-
"body": "inBody",
|
|
353
|
-
"frameset": "inFrameset",
|
|
354
|
-
"html": "beforeHead"
|
|
355
|
-
}
|
|
356
|
-
for node in self.tree.openElements[::-1]:
|
|
357
|
-
nodeName = node.name
|
|
358
|
-
new_phase = None
|
|
359
|
-
if node == self.tree.openElements[0]:
|
|
360
|
-
assert self.innerHTML
|
|
361
|
-
last = True
|
|
362
|
-
nodeName = self.innerHTML
|
|
363
|
-
# Check for conditions that should only happen in the innerHTML
|
|
364
|
-
# case
|
|
365
|
-
if nodeName in ("select", "colgroup", "head", "html"):
|
|
366
|
-
assert self.innerHTML
|
|
367
|
-
|
|
368
|
-
if not last and node.namespace != self.tree.defaultNamespace:
|
|
369
|
-
continue
|
|
370
|
-
|
|
371
|
-
if nodeName in newModes:
|
|
372
|
-
new_phase = self.phases[newModes[nodeName]]
|
|
373
|
-
break
|
|
374
|
-
elif last:
|
|
375
|
-
new_phase = self.phases["inBody"]
|
|
376
|
-
break
|
|
377
|
-
|
|
378
|
-
self.phase = new_phase
|
|
379
|
-
|
|
380
|
-
def parseRCDataRawtext(self, token, contentType):
|
|
381
|
-
# Generic RCDATA/RAWTEXT Parsing algorithm
|
|
382
|
-
assert contentType in ("RAWTEXT", "RCDATA")
|
|
383
|
-
|
|
384
|
-
self.tree.insertElement(token)
|
|
385
|
-
|
|
386
|
-
if contentType == "RAWTEXT":
|
|
387
|
-
self.tokenizer.state = self.tokenizer.rawtextState
|
|
388
|
-
else:
|
|
389
|
-
self.tokenizer.state = self.tokenizer.rcdataState
|
|
390
|
-
|
|
391
|
-
self.originalPhase = self.phase
|
|
392
|
-
|
|
393
|
-
self.phase = self.phases["text"]
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
@_utils.memoize
|
|
397
|
-
def getPhases(debug):
|
|
398
|
-
def log(function):
|
|
399
|
-
"""Logger that records which phase processes each token"""
|
|
400
|
-
type_names = {value: key for key, value in tokenTypes.items()}
|
|
401
|
-
|
|
402
|
-
def wrapped(self, *args, **kwargs):
|
|
403
|
-
if function.__name__.startswith("process") and len(args) > 0:
|
|
404
|
-
token = args[0]
|
|
405
|
-
info = {"type": type_names[token['type']]}
|
|
406
|
-
if token['type'] in tagTokenTypes:
|
|
407
|
-
info["name"] = token['name']
|
|
408
|
-
|
|
409
|
-
self.parser.log.append((self.parser.tokenizer.state.__name__,
|
|
410
|
-
self.parser.phase.__class__.__name__,
|
|
411
|
-
self.__class__.__name__,
|
|
412
|
-
function.__name__,
|
|
413
|
-
info))
|
|
414
|
-
return function(self, *args, **kwargs)
|
|
415
|
-
else:
|
|
416
|
-
return function(self, *args, **kwargs)
|
|
417
|
-
return wrapped
|
|
418
|
-
|
|
419
|
-
def getMetaclass(use_metaclass, metaclass_func):
|
|
420
|
-
if use_metaclass:
|
|
421
|
-
return method_decorator_metaclass(metaclass_func)
|
|
422
|
-
else:
|
|
423
|
-
return type
|
|
424
|
-
|
|
425
|
-
# pylint:disable=unused-argument
|
|
426
|
-
class Phase(with_metaclass(getMetaclass(debug, log))):
|
|
427
|
-
"""Base class for helper object that implements each phase of processing
|
|
428
|
-
"""
|
|
429
|
-
__slots__ = ("parser", "tree", "__startTagCache", "__endTagCache")
|
|
430
|
-
|
|
431
|
-
def __init__(self, parser, tree):
|
|
432
|
-
self.parser = parser
|
|
433
|
-
self.tree = tree
|
|
434
|
-
self.__startTagCache = {}
|
|
435
|
-
self.__endTagCache = {}
|
|
436
|
-
|
|
437
|
-
def processEOF(self):
|
|
438
|
-
raise NotImplementedError
|
|
439
|
-
|
|
440
|
-
def processComment(self, token):
|
|
441
|
-
# For most phases the following is correct. Where it's not it will be
|
|
442
|
-
# overridden.
|
|
443
|
-
self.tree.insertComment(token, self.tree.openElements[-1])
|
|
444
|
-
|
|
445
|
-
def processDoctype(self, token):
|
|
446
|
-
self.parser.parseError("unexpected-doctype")
|
|
447
|
-
|
|
448
|
-
def processCharacters(self, token):
|
|
449
|
-
self.tree.insertText(token["data"])
|
|
450
|
-
|
|
451
|
-
def processSpaceCharacters(self, token):
|
|
452
|
-
self.tree.insertText(token["data"])
|
|
453
|
-
|
|
454
|
-
def processStartTag(self, token):
|
|
455
|
-
# Note the caching is done here rather than BoundMethodDispatcher as doing it there
|
|
456
|
-
# requires a circular reference to the Phase, and this ends up with a significant
|
|
457
|
-
# (CPython 2.7, 3.8) GC cost when parsing many short inputs
|
|
458
|
-
name = token["name"]
|
|
459
|
-
# In Py2, using `in` is quicker in general than try/except KeyError
|
|
460
|
-
# In Py3, `in` is quicker when there are few cache hits (typically short inputs)
|
|
461
|
-
if name in self.__startTagCache:
|
|
462
|
-
func = self.__startTagCache[name]
|
|
463
|
-
else:
|
|
464
|
-
func = self.__startTagCache[name] = self.startTagHandler[name]
|
|
465
|
-
# bound the cache size in case we get loads of unknown tags
|
|
466
|
-
while len(self.__startTagCache) > len(self.startTagHandler) * 1.1:
|
|
467
|
-
# this makes the eviction policy random on Py < 3.7 and FIFO >= 3.7
|
|
468
|
-
self.__startTagCache.pop(next(iter(self.__startTagCache)))
|
|
469
|
-
return func(token)
|
|
470
|
-
|
|
471
|
-
def startTagHtml(self, token):
|
|
472
|
-
if not self.parser.firstStartTag and token["name"] == "html":
|
|
473
|
-
self.parser.parseError("non-html-root")
|
|
474
|
-
# XXX Need a check here to see if the first start tag token emitted is
|
|
475
|
-
# this token... If it's not, invoke self.parser.parseError().
|
|
476
|
-
for attr, value in token["data"].items():
|
|
477
|
-
if attr not in self.tree.openElements[0].attributes:
|
|
478
|
-
self.tree.openElements[0].attributes[attr] = value
|
|
479
|
-
self.parser.firstStartTag = False
|
|
480
|
-
|
|
481
|
-
def processEndTag(self, token):
|
|
482
|
-
# Note the caching is done here rather than BoundMethodDispatcher as doing it there
|
|
483
|
-
# requires a circular reference to the Phase, and this ends up with a significant
|
|
484
|
-
# (CPython 2.7, 3.8) GC cost when parsing many short inputs
|
|
485
|
-
name = token["name"]
|
|
486
|
-
# In Py2, using `in` is quicker in general than try/except KeyError
|
|
487
|
-
# In Py3, `in` is quicker when there are few cache hits (typically short inputs)
|
|
488
|
-
if name in self.__endTagCache:
|
|
489
|
-
func = self.__endTagCache[name]
|
|
490
|
-
else:
|
|
491
|
-
func = self.__endTagCache[name] = self.endTagHandler[name]
|
|
492
|
-
# bound the cache size in case we get loads of unknown tags
|
|
493
|
-
while len(self.__endTagCache) > len(self.endTagHandler) * 1.1:
|
|
494
|
-
# this makes the eviction policy random on Py < 3.7 and FIFO >= 3.7
|
|
495
|
-
self.__endTagCache.pop(next(iter(self.__endTagCache)))
|
|
496
|
-
return func(token)
|
|
497
|
-
|
|
498
|
-
class InitialPhase(Phase):
|
|
499
|
-
__slots__ = tuple()
|
|
500
|
-
|
|
501
|
-
def processSpaceCharacters(self, token):
|
|
502
|
-
pass
|
|
503
|
-
|
|
504
|
-
def processComment(self, token):
|
|
505
|
-
self.tree.insertComment(token, self.tree.document)
|
|
506
|
-
|
|
507
|
-
def processDoctype(self, token):
|
|
508
|
-
name = token["name"]
|
|
509
|
-
publicId = token["publicId"]
|
|
510
|
-
systemId = token["systemId"]
|
|
511
|
-
correct = token["correct"]
|
|
512
|
-
|
|
513
|
-
if (name != "html" or publicId is not None or
|
|
514
|
-
systemId is not None and systemId != "about:legacy-compat"):
|
|
515
|
-
self.parser.parseError("unknown-doctype")
|
|
516
|
-
|
|
517
|
-
if publicId is None:
|
|
518
|
-
publicId = ""
|
|
519
|
-
|
|
520
|
-
self.tree.insertDoctype(token)
|
|
521
|
-
|
|
522
|
-
if publicId != "":
|
|
523
|
-
publicId = publicId.translate(asciiUpper2Lower)
|
|
524
|
-
|
|
525
|
-
if (not correct or token["name"] != "html" or
|
|
526
|
-
publicId.startswith(
|
|
527
|
-
("+//silmaril//dtd html pro v0r11 19970101//",
|
|
528
|
-
"-//advasoft ltd//dtd html 3.0 aswedit + extensions//",
|
|
529
|
-
"-//as//dtd html 3.0 aswedit + extensions//",
|
|
530
|
-
"-//ietf//dtd html 2.0 level 1//",
|
|
531
|
-
"-//ietf//dtd html 2.0 level 2//",
|
|
532
|
-
"-//ietf//dtd html 2.0 strict level 1//",
|
|
533
|
-
"-//ietf//dtd html 2.0 strict level 2//",
|
|
534
|
-
"-//ietf//dtd html 2.0 strict//",
|
|
535
|
-
"-//ietf//dtd html 2.0//",
|
|
536
|
-
"-//ietf//dtd html 2.1e//",
|
|
537
|
-
"-//ietf//dtd html 3.0//",
|
|
538
|
-
"-//ietf//dtd html 3.2 final//",
|
|
539
|
-
"-//ietf//dtd html 3.2//",
|
|
540
|
-
"-//ietf//dtd html 3//",
|
|
541
|
-
"-//ietf//dtd html level 0//",
|
|
542
|
-
"-//ietf//dtd html level 1//",
|
|
543
|
-
"-//ietf//dtd html level 2//",
|
|
544
|
-
"-//ietf//dtd html level 3//",
|
|
545
|
-
"-//ietf//dtd html strict level 0//",
|
|
546
|
-
"-//ietf//dtd html strict level 1//",
|
|
547
|
-
"-//ietf//dtd html strict level 2//",
|
|
548
|
-
"-//ietf//dtd html strict level 3//",
|
|
549
|
-
"-//ietf//dtd html strict//",
|
|
550
|
-
"-//ietf//dtd html//",
|
|
551
|
-
"-//metrius//dtd metrius presentational//",
|
|
552
|
-
"-//microsoft//dtd internet explorer 2.0 html strict//",
|
|
553
|
-
"-//microsoft//dtd internet explorer 2.0 html//",
|
|
554
|
-
"-//microsoft//dtd internet explorer 2.0 tables//",
|
|
555
|
-
"-//microsoft//dtd internet explorer 3.0 html strict//",
|
|
556
|
-
"-//microsoft//dtd internet explorer 3.0 html//",
|
|
557
|
-
"-//microsoft//dtd internet explorer 3.0 tables//",
|
|
558
|
-
"-//netscape comm. corp.//dtd html//",
|
|
559
|
-
"-//netscape comm. corp.//dtd strict html//",
|
|
560
|
-
"-//o'reilly and associates//dtd html 2.0//",
|
|
561
|
-
"-//o'reilly and associates//dtd html extended 1.0//",
|
|
562
|
-
"-//o'reilly and associates//dtd html extended relaxed 1.0//",
|
|
563
|
-
"-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//",
|
|
564
|
-
"-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//",
|
|
565
|
-
"-//spyglass//dtd html 2.0 extended//",
|
|
566
|
-
"-//sq//dtd html 2.0 hotmetal + extensions//",
|
|
567
|
-
"-//sun microsystems corp.//dtd hotjava html//",
|
|
568
|
-
"-//sun microsystems corp.//dtd hotjava strict html//",
|
|
569
|
-
"-//w3c//dtd html 3 1995-03-24//",
|
|
570
|
-
"-//w3c//dtd html 3.2 draft//",
|
|
571
|
-
"-//w3c//dtd html 3.2 final//",
|
|
572
|
-
"-//w3c//dtd html 3.2//",
|
|
573
|
-
"-//w3c//dtd html 3.2s draft//",
|
|
574
|
-
"-//w3c//dtd html 4.0 frameset//",
|
|
575
|
-
"-//w3c//dtd html 4.0 transitional//",
|
|
576
|
-
"-//w3c//dtd html experimental 19960712//",
|
|
577
|
-
"-//w3c//dtd html experimental 970421//",
|
|
578
|
-
"-//w3c//dtd w3 html//",
|
|
579
|
-
"-//w3o//dtd w3 html 3.0//",
|
|
580
|
-
"-//webtechs//dtd mozilla html 2.0//",
|
|
581
|
-
"-//webtechs//dtd mozilla html//")) or
|
|
582
|
-
publicId in ("-//w3o//dtd w3 html strict 3.0//en//",
|
|
583
|
-
"-/w3c/dtd html 4.0 transitional/en",
|
|
584
|
-
"html") or
|
|
585
|
-
publicId.startswith(
|
|
586
|
-
("-//w3c//dtd html 4.01 frameset//",
|
|
587
|
-
"-//w3c//dtd html 4.01 transitional//")) and
|
|
588
|
-
systemId is None or
|
|
589
|
-
systemId and systemId.lower() == "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"):
|
|
590
|
-
self.parser.compatMode = "quirks"
|
|
591
|
-
elif (publicId.startswith(
|
|
592
|
-
("-//w3c//dtd xhtml 1.0 frameset//",
|
|
593
|
-
"-//w3c//dtd xhtml 1.0 transitional//")) or
|
|
594
|
-
publicId.startswith(
|
|
595
|
-
("-//w3c//dtd html 4.01 frameset//",
|
|
596
|
-
"-//w3c//dtd html 4.01 transitional//")) and
|
|
597
|
-
systemId is not None):
|
|
598
|
-
self.parser.compatMode = "limited quirks"
|
|
599
|
-
|
|
600
|
-
self.parser.phase = self.parser.phases["beforeHtml"]
|
|
601
|
-
|
|
602
|
-
def anythingElse(self):
|
|
603
|
-
self.parser.compatMode = "quirks"
|
|
604
|
-
self.parser.phase = self.parser.phases["beforeHtml"]
|
|
605
|
-
|
|
606
|
-
def processCharacters(self, token):
|
|
607
|
-
self.parser.parseError("expected-doctype-but-got-chars")
|
|
608
|
-
self.anythingElse()
|
|
609
|
-
return token
|
|
610
|
-
|
|
611
|
-
def processStartTag(self, token):
|
|
612
|
-
self.parser.parseError("expected-doctype-but-got-start-tag",
|
|
613
|
-
{"name": token["name"]})
|
|
614
|
-
self.anythingElse()
|
|
615
|
-
return token
|
|
616
|
-
|
|
617
|
-
def processEndTag(self, token):
|
|
618
|
-
self.parser.parseError("expected-doctype-but-got-end-tag",
|
|
619
|
-
{"name": token["name"]})
|
|
620
|
-
self.anythingElse()
|
|
621
|
-
return token
|
|
622
|
-
|
|
623
|
-
def processEOF(self):
|
|
624
|
-
self.parser.parseError("expected-doctype-but-got-eof")
|
|
625
|
-
self.anythingElse()
|
|
626
|
-
return True
|
|
627
|
-
|
|
628
|
-
class BeforeHtmlPhase(Phase):
|
|
629
|
-
__slots__ = tuple()
|
|
630
|
-
|
|
631
|
-
# helper methods
|
|
632
|
-
def insertHtmlElement(self):
|
|
633
|
-
self.tree.insertRoot(impliedTagToken("html", "StartTag"))
|
|
634
|
-
self.parser.phase = self.parser.phases["beforeHead"]
|
|
635
|
-
|
|
636
|
-
# other
|
|
637
|
-
def processEOF(self):
|
|
638
|
-
self.insertHtmlElement()
|
|
639
|
-
return True
|
|
640
|
-
|
|
641
|
-
def processComment(self, token):
|
|
642
|
-
self.tree.insertComment(token, self.tree.document)
|
|
643
|
-
|
|
644
|
-
def processSpaceCharacters(self, token):
|
|
645
|
-
pass
|
|
646
|
-
|
|
647
|
-
def processCharacters(self, token):
|
|
648
|
-
self.insertHtmlElement()
|
|
649
|
-
return token
|
|
650
|
-
|
|
651
|
-
def processStartTag(self, token):
|
|
652
|
-
if token["name"] == "html":
|
|
653
|
-
self.parser.firstStartTag = True
|
|
654
|
-
self.insertHtmlElement()
|
|
655
|
-
return token
|
|
656
|
-
|
|
657
|
-
def processEndTag(self, token):
|
|
658
|
-
if token["name"] not in ("head", "body", "html", "br"):
|
|
659
|
-
self.parser.parseError("unexpected-end-tag-before-html",
|
|
660
|
-
{"name": token["name"]})
|
|
661
|
-
else:
|
|
662
|
-
self.insertHtmlElement()
|
|
663
|
-
return token
|
|
664
|
-
|
|
665
|
-
class BeforeHeadPhase(Phase):
|
|
666
|
-
__slots__ = tuple()
|
|
667
|
-
|
|
668
|
-
def processEOF(self):
|
|
669
|
-
self.startTagHead(impliedTagToken("head", "StartTag"))
|
|
670
|
-
return True
|
|
671
|
-
|
|
672
|
-
def processSpaceCharacters(self, token):
|
|
673
|
-
pass
|
|
674
|
-
|
|
675
|
-
def processCharacters(self, token):
|
|
676
|
-
self.startTagHead(impliedTagToken("head", "StartTag"))
|
|
677
|
-
return token
|
|
678
|
-
|
|
679
|
-
def startTagHtml(self, token):
|
|
680
|
-
return self.parser.phases["inBody"].processStartTag(token)
|
|
681
|
-
|
|
682
|
-
def startTagHead(self, token):
|
|
683
|
-
self.tree.insertElement(token)
|
|
684
|
-
self.tree.headPointer = self.tree.openElements[-1]
|
|
685
|
-
self.parser.phase = self.parser.phases["inHead"]
|
|
686
|
-
|
|
687
|
-
def startTagOther(self, token):
|
|
688
|
-
self.startTagHead(impliedTagToken("head", "StartTag"))
|
|
689
|
-
return token
|
|
690
|
-
|
|
691
|
-
def endTagImplyHead(self, token):
|
|
692
|
-
self.startTagHead(impliedTagToken("head", "StartTag"))
|
|
693
|
-
return token
|
|
694
|
-
|
|
695
|
-
def endTagOther(self, token):
|
|
696
|
-
self.parser.parseError("end-tag-after-implied-root",
|
|
697
|
-
{"name": token["name"]})
|
|
698
|
-
|
|
699
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
700
|
-
("html", startTagHtml),
|
|
701
|
-
("head", startTagHead)
|
|
702
|
-
])
|
|
703
|
-
startTagHandler.default = startTagOther
|
|
704
|
-
|
|
705
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
706
|
-
(("head", "body", "html", "br"), endTagImplyHead)
|
|
707
|
-
])
|
|
708
|
-
endTagHandler.default = endTagOther
|
|
709
|
-
|
|
710
|
-
class InHeadPhase(Phase):
|
|
711
|
-
__slots__ = tuple()
|
|
712
|
-
|
|
713
|
-
# the real thing
|
|
714
|
-
def processEOF(self):
|
|
715
|
-
self.anythingElse()
|
|
716
|
-
return True
|
|
717
|
-
|
|
718
|
-
def processCharacters(self, token):
|
|
719
|
-
self.anythingElse()
|
|
720
|
-
return token
|
|
721
|
-
|
|
722
|
-
def startTagHtml(self, token):
|
|
723
|
-
return self.parser.phases["inBody"].processStartTag(token)
|
|
724
|
-
|
|
725
|
-
def startTagHead(self, token):
|
|
726
|
-
self.parser.parseError("two-heads-are-not-better-than-one")
|
|
727
|
-
|
|
728
|
-
def startTagBaseLinkCommand(self, token):
|
|
729
|
-
self.tree.insertElement(token)
|
|
730
|
-
self.tree.openElements.pop()
|
|
731
|
-
token["selfClosingAcknowledged"] = True
|
|
732
|
-
|
|
733
|
-
def startTagMeta(self, token):
|
|
734
|
-
self.tree.insertElement(token)
|
|
735
|
-
self.tree.openElements.pop()
|
|
736
|
-
token["selfClosingAcknowledged"] = True
|
|
737
|
-
|
|
738
|
-
attributes = token["data"]
|
|
739
|
-
if self.parser.tokenizer.stream.charEncoding[1] == "tentative":
|
|
740
|
-
if "charset" in attributes:
|
|
741
|
-
self.parser.tokenizer.stream.changeEncoding(attributes["charset"])
|
|
742
|
-
elif ("content" in attributes and
|
|
743
|
-
"http-equiv" in attributes and
|
|
744
|
-
attributes["http-equiv"].lower() == "content-type"):
|
|
745
|
-
# Encoding it as UTF-8 here is a hack, as really we should pass
|
|
746
|
-
# the abstract Unicode string, and just use the
|
|
747
|
-
# ContentAttrParser on that, but using UTF-8 allows all chars
|
|
748
|
-
# to be encoded and as a ASCII-superset works.
|
|
749
|
-
data = _inputstream.EncodingBytes(attributes["content"].encode("utf-8"))
|
|
750
|
-
parser = _inputstream.ContentAttrParser(data)
|
|
751
|
-
codec = parser.parse()
|
|
752
|
-
self.parser.tokenizer.stream.changeEncoding(codec)
|
|
753
|
-
|
|
754
|
-
def startTagTitle(self, token):
|
|
755
|
-
self.parser.parseRCDataRawtext(token, "RCDATA")
|
|
756
|
-
|
|
757
|
-
def startTagNoFramesStyle(self, token):
|
|
758
|
-
# Need to decide whether to implement the scripting-disabled case
|
|
759
|
-
self.parser.parseRCDataRawtext(token, "RAWTEXT")
|
|
760
|
-
|
|
761
|
-
def startTagNoscript(self, token):
|
|
762
|
-
if self.parser.scripting:
|
|
763
|
-
self.parser.parseRCDataRawtext(token, "RAWTEXT")
|
|
764
|
-
else:
|
|
765
|
-
self.tree.insertElement(token)
|
|
766
|
-
self.parser.phase = self.parser.phases["inHeadNoscript"]
|
|
767
|
-
|
|
768
|
-
def startTagScript(self, token):
|
|
769
|
-
self.tree.insertElement(token)
|
|
770
|
-
self.parser.tokenizer.state = self.parser.tokenizer.scriptDataState
|
|
771
|
-
self.parser.originalPhase = self.parser.phase
|
|
772
|
-
self.parser.phase = self.parser.phases["text"]
|
|
773
|
-
|
|
774
|
-
def startTagOther(self, token):
|
|
775
|
-
self.anythingElse()
|
|
776
|
-
return token
|
|
777
|
-
|
|
778
|
-
def endTagHead(self, token):
|
|
779
|
-
node = self.parser.tree.openElements.pop()
|
|
780
|
-
assert node.name == "head", "Expected head got %s" % node.name
|
|
781
|
-
self.parser.phase = self.parser.phases["afterHead"]
|
|
782
|
-
|
|
783
|
-
def endTagHtmlBodyBr(self, token):
|
|
784
|
-
self.anythingElse()
|
|
785
|
-
return token
|
|
786
|
-
|
|
787
|
-
def endTagOther(self, token):
|
|
788
|
-
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
|
|
789
|
-
|
|
790
|
-
def anythingElse(self):
|
|
791
|
-
self.endTagHead(impliedTagToken("head"))
|
|
792
|
-
|
|
793
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
794
|
-
("html", startTagHtml),
|
|
795
|
-
("title", startTagTitle),
|
|
796
|
-
(("noframes", "style"), startTagNoFramesStyle),
|
|
797
|
-
("noscript", startTagNoscript),
|
|
798
|
-
("script", startTagScript),
|
|
799
|
-
(("base", "basefont", "bgsound", "command", "link"),
|
|
800
|
-
startTagBaseLinkCommand),
|
|
801
|
-
("meta", startTagMeta),
|
|
802
|
-
("head", startTagHead)
|
|
803
|
-
])
|
|
804
|
-
startTagHandler.default = startTagOther
|
|
805
|
-
|
|
806
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
807
|
-
("head", endTagHead),
|
|
808
|
-
(("br", "html", "body"), endTagHtmlBodyBr)
|
|
809
|
-
])
|
|
810
|
-
endTagHandler.default = endTagOther
|
|
811
|
-
|
|
812
|
-
class InHeadNoscriptPhase(Phase):
|
|
813
|
-
__slots__ = tuple()
|
|
814
|
-
|
|
815
|
-
def processEOF(self):
|
|
816
|
-
self.parser.parseError("eof-in-head-noscript")
|
|
817
|
-
self.anythingElse()
|
|
818
|
-
return True
|
|
819
|
-
|
|
820
|
-
def processComment(self, token):
|
|
821
|
-
return self.parser.phases["inHead"].processComment(token)
|
|
822
|
-
|
|
823
|
-
def processCharacters(self, token):
|
|
824
|
-
self.parser.parseError("char-in-head-noscript")
|
|
825
|
-
self.anythingElse()
|
|
826
|
-
return token
|
|
827
|
-
|
|
828
|
-
def processSpaceCharacters(self, token):
|
|
829
|
-
return self.parser.phases["inHead"].processSpaceCharacters(token)
|
|
830
|
-
|
|
831
|
-
def startTagHtml(self, token):
|
|
832
|
-
return self.parser.phases["inBody"].processStartTag(token)
|
|
833
|
-
|
|
834
|
-
def startTagBaseLinkCommand(self, token):
|
|
835
|
-
return self.parser.phases["inHead"].processStartTag(token)
|
|
836
|
-
|
|
837
|
-
def startTagHeadNoscript(self, token):
|
|
838
|
-
self.parser.parseError("unexpected-start-tag", {"name": token["name"]})
|
|
839
|
-
|
|
840
|
-
def startTagOther(self, token):
|
|
841
|
-
self.parser.parseError("unexpected-inhead-noscript-tag", {"name": token["name"]})
|
|
842
|
-
self.anythingElse()
|
|
843
|
-
return token
|
|
844
|
-
|
|
845
|
-
def endTagNoscript(self, token):
|
|
846
|
-
node = self.parser.tree.openElements.pop()
|
|
847
|
-
assert node.name == "noscript", "Expected noscript got %s" % node.name
|
|
848
|
-
self.parser.phase = self.parser.phases["inHead"]
|
|
849
|
-
|
|
850
|
-
def endTagBr(self, token):
|
|
851
|
-
self.parser.parseError("unexpected-inhead-noscript-tag", {"name": token["name"]})
|
|
852
|
-
self.anythingElse()
|
|
853
|
-
return token
|
|
854
|
-
|
|
855
|
-
def endTagOther(self, token):
|
|
856
|
-
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
|
|
857
|
-
|
|
858
|
-
def anythingElse(self):
|
|
859
|
-
# Caller must raise parse error first!
|
|
860
|
-
self.endTagNoscript(impliedTagToken("noscript"))
|
|
861
|
-
|
|
862
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
863
|
-
("html", startTagHtml),
|
|
864
|
-
(("basefont", "bgsound", "link", "meta", "noframes", "style"), startTagBaseLinkCommand),
|
|
865
|
-
(("head", "noscript"), startTagHeadNoscript),
|
|
866
|
-
])
|
|
867
|
-
startTagHandler.default = startTagOther
|
|
868
|
-
|
|
869
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
870
|
-
("noscript", endTagNoscript),
|
|
871
|
-
("br", endTagBr),
|
|
872
|
-
])
|
|
873
|
-
endTagHandler.default = endTagOther
|
|
874
|
-
|
|
875
|
-
class AfterHeadPhase(Phase):
|
|
876
|
-
__slots__ = tuple()
|
|
877
|
-
|
|
878
|
-
def processEOF(self):
|
|
879
|
-
self.anythingElse()
|
|
880
|
-
return True
|
|
881
|
-
|
|
882
|
-
def processCharacters(self, token):
|
|
883
|
-
self.anythingElse()
|
|
884
|
-
return token
|
|
885
|
-
|
|
886
|
-
def startTagHtml(self, token):
|
|
887
|
-
return self.parser.phases["inBody"].processStartTag(token)
|
|
888
|
-
|
|
889
|
-
def startTagBody(self, token):
|
|
890
|
-
self.parser.framesetOK = False
|
|
891
|
-
self.tree.insertElement(token)
|
|
892
|
-
self.parser.phase = self.parser.phases["inBody"]
|
|
893
|
-
|
|
894
|
-
def startTagFrameset(self, token):
|
|
895
|
-
self.tree.insertElement(token)
|
|
896
|
-
self.parser.phase = self.parser.phases["inFrameset"]
|
|
897
|
-
|
|
898
|
-
def startTagFromHead(self, token):
|
|
899
|
-
self.parser.parseError("unexpected-start-tag-out-of-my-head",
|
|
900
|
-
{"name": token["name"]})
|
|
901
|
-
self.tree.openElements.append(self.tree.headPointer)
|
|
902
|
-
self.parser.phases["inHead"].processStartTag(token)
|
|
903
|
-
for node in self.tree.openElements[::-1]:
|
|
904
|
-
if node.name == "head":
|
|
905
|
-
self.tree.openElements.remove(node)
|
|
906
|
-
break
|
|
907
|
-
|
|
908
|
-
def startTagHead(self, token):
|
|
909
|
-
self.parser.parseError("unexpected-start-tag", {"name": token["name"]})
|
|
910
|
-
|
|
911
|
-
def startTagOther(self, token):
|
|
912
|
-
self.anythingElse()
|
|
913
|
-
return token
|
|
914
|
-
|
|
915
|
-
def endTagHtmlBodyBr(self, token):
|
|
916
|
-
self.anythingElse()
|
|
917
|
-
return token
|
|
918
|
-
|
|
919
|
-
def endTagOther(self, token):
|
|
920
|
-
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
|
|
921
|
-
|
|
922
|
-
def anythingElse(self):
|
|
923
|
-
self.tree.insertElement(impliedTagToken("body", "StartTag"))
|
|
924
|
-
self.parser.phase = self.parser.phases["inBody"]
|
|
925
|
-
self.parser.framesetOK = True
|
|
926
|
-
|
|
927
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
928
|
-
("html", startTagHtml),
|
|
929
|
-
("body", startTagBody),
|
|
930
|
-
("frameset", startTagFrameset),
|
|
931
|
-
(("base", "basefont", "bgsound", "link", "meta", "noframes", "script",
|
|
932
|
-
"style", "title"),
|
|
933
|
-
startTagFromHead),
|
|
934
|
-
("head", startTagHead)
|
|
935
|
-
])
|
|
936
|
-
startTagHandler.default = startTagOther
|
|
937
|
-
endTagHandler = _utils.MethodDispatcher([(("body", "html", "br"),
|
|
938
|
-
endTagHtmlBodyBr)])
|
|
939
|
-
endTagHandler.default = endTagOther
|
|
940
|
-
|
|
941
|
-
class InBodyPhase(Phase):
|
|
942
|
-
# http://www.whatwg.org/specs/web-apps/current-work/#parsing-main-inbody
|
|
943
|
-
# the really-really-really-very crazy mode
|
|
944
|
-
__slots__ = ("processSpaceCharacters",)
|
|
945
|
-
|
|
946
|
-
def __init__(self, *args, **kwargs):
|
|
947
|
-
super(InBodyPhase, self).__init__(*args, **kwargs)
|
|
948
|
-
# Set this to the default handler
|
|
949
|
-
self.processSpaceCharacters = self.processSpaceCharactersNonPre
|
|
950
|
-
|
|
951
|
-
def isMatchingFormattingElement(self, node1, node2):
|
|
952
|
-
return (node1.name == node2.name and
|
|
953
|
-
node1.namespace == node2.namespace and
|
|
954
|
-
node1.attributes == node2.attributes)
|
|
955
|
-
|
|
956
|
-
# helper
|
|
957
|
-
def addFormattingElement(self, token):
|
|
958
|
-
self.tree.insertElement(token)
|
|
959
|
-
element = self.tree.openElements[-1]
|
|
960
|
-
|
|
961
|
-
matchingElements = []
|
|
962
|
-
for node in self.tree.activeFormattingElements[::-1]:
|
|
963
|
-
if node is Marker:
|
|
964
|
-
break
|
|
965
|
-
elif self.isMatchingFormattingElement(node, element):
|
|
966
|
-
matchingElements.append(node)
|
|
967
|
-
|
|
968
|
-
assert len(matchingElements) <= 3
|
|
969
|
-
if len(matchingElements) == 3:
|
|
970
|
-
self.tree.activeFormattingElements.remove(matchingElements[-1])
|
|
971
|
-
self.tree.activeFormattingElements.append(element)
|
|
972
|
-
|
|
973
|
-
# the real deal
|
|
974
|
-
def processEOF(self):
|
|
975
|
-
allowed_elements = frozenset(("dd", "dt", "li", "p", "tbody", "td",
|
|
976
|
-
"tfoot", "th", "thead", "tr", "body",
|
|
977
|
-
"html"))
|
|
978
|
-
for node in self.tree.openElements[::-1]:
|
|
979
|
-
if node.name not in allowed_elements:
|
|
980
|
-
self.parser.parseError("expected-closing-tag-but-got-eof")
|
|
981
|
-
break
|
|
982
|
-
# Stop parsing
|
|
983
|
-
|
|
984
|
-
def processSpaceCharactersDropNewline(self, token):
|
|
985
|
-
# Sometimes (start of <pre>, <listing>, and <textarea> blocks) we
|
|
986
|
-
# want to drop leading newlines
|
|
987
|
-
data = token["data"]
|
|
988
|
-
self.processSpaceCharacters = self.processSpaceCharactersNonPre
|
|
989
|
-
if (data.startswith("\n") and
|
|
990
|
-
self.tree.openElements[-1].name in ("pre", "listing", "textarea") and
|
|
991
|
-
not self.tree.openElements[-1].hasContent()):
|
|
992
|
-
data = data[1:]
|
|
993
|
-
if data:
|
|
994
|
-
self.tree.reconstructActiveFormattingElements()
|
|
995
|
-
self.tree.insertText(data)
|
|
996
|
-
|
|
997
|
-
def processCharacters(self, token):
|
|
998
|
-
if token["data"] == "\u0000":
|
|
999
|
-
# The tokenizer should always emit null on its own
|
|
1000
|
-
return
|
|
1001
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1002
|
-
self.tree.insertText(token["data"])
|
|
1003
|
-
# This must be bad for performance
|
|
1004
|
-
if (self.parser.framesetOK and
|
|
1005
|
-
any([char not in spaceCharacters
|
|
1006
|
-
for char in token["data"]])):
|
|
1007
|
-
self.parser.framesetOK = False
|
|
1008
|
-
|
|
1009
|
-
def processSpaceCharactersNonPre(self, token):
|
|
1010
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1011
|
-
self.tree.insertText(token["data"])
|
|
1012
|
-
|
|
1013
|
-
def startTagProcessInHead(self, token):
|
|
1014
|
-
return self.parser.phases["inHead"].processStartTag(token)
|
|
1015
|
-
|
|
1016
|
-
def startTagBody(self, token):
|
|
1017
|
-
self.parser.parseError("unexpected-start-tag", {"name": "body"})
|
|
1018
|
-
if (len(self.tree.openElements) == 1 or
|
|
1019
|
-
self.tree.openElements[1].name != "body"):
|
|
1020
|
-
assert self.parser.innerHTML
|
|
1021
|
-
else:
|
|
1022
|
-
self.parser.framesetOK = False
|
|
1023
|
-
for attr, value in token["data"].items():
|
|
1024
|
-
if attr not in self.tree.openElements[1].attributes:
|
|
1025
|
-
self.tree.openElements[1].attributes[attr] = value
|
|
1026
|
-
|
|
1027
|
-
def startTagFrameset(self, token):
|
|
1028
|
-
self.parser.parseError("unexpected-start-tag", {"name": "frameset"})
|
|
1029
|
-
if (len(self.tree.openElements) == 1 or self.tree.openElements[1].name != "body"):
|
|
1030
|
-
assert self.parser.innerHTML
|
|
1031
|
-
elif not self.parser.framesetOK:
|
|
1032
|
-
pass
|
|
1033
|
-
else:
|
|
1034
|
-
if self.tree.openElements[1].parent:
|
|
1035
|
-
self.tree.openElements[1].parent.removeChild(self.tree.openElements[1])
|
|
1036
|
-
while self.tree.openElements[-1].name != "html":
|
|
1037
|
-
self.tree.openElements.pop()
|
|
1038
|
-
self.tree.insertElement(token)
|
|
1039
|
-
self.parser.phase = self.parser.phases["inFrameset"]
|
|
1040
|
-
|
|
1041
|
-
def startTagCloseP(self, token):
|
|
1042
|
-
if self.tree.elementInScope("p", variant="button"):
|
|
1043
|
-
self.endTagP(impliedTagToken("p"))
|
|
1044
|
-
self.tree.insertElement(token)
|
|
1045
|
-
|
|
1046
|
-
def startTagPreListing(self, token):
|
|
1047
|
-
if self.tree.elementInScope("p", variant="button"):
|
|
1048
|
-
self.endTagP(impliedTagToken("p"))
|
|
1049
|
-
self.tree.insertElement(token)
|
|
1050
|
-
self.parser.framesetOK = False
|
|
1051
|
-
self.processSpaceCharacters = self.processSpaceCharactersDropNewline
|
|
1052
|
-
|
|
1053
|
-
def startTagForm(self, token):
|
|
1054
|
-
if self.tree.formPointer:
|
|
1055
|
-
self.parser.parseError("unexpected-start-tag", {"name": "form"})
|
|
1056
|
-
else:
|
|
1057
|
-
if self.tree.elementInScope("p", variant="button"):
|
|
1058
|
-
self.endTagP(impliedTagToken("p"))
|
|
1059
|
-
self.tree.insertElement(token)
|
|
1060
|
-
self.tree.formPointer = self.tree.openElements[-1]
|
|
1061
|
-
|
|
1062
|
-
def startTagListItem(self, token):
|
|
1063
|
-
self.parser.framesetOK = False
|
|
1064
|
-
|
|
1065
|
-
stopNamesMap = {"li": ["li"],
|
|
1066
|
-
"dt": ["dt", "dd"],
|
|
1067
|
-
"dd": ["dt", "dd"]}
|
|
1068
|
-
stopNames = stopNamesMap[token["name"]]
|
|
1069
|
-
for node in reversed(self.tree.openElements):
|
|
1070
|
-
if node.name in stopNames:
|
|
1071
|
-
self.parser.phase.processEndTag(
|
|
1072
|
-
impliedTagToken(node.name, "EndTag"))
|
|
1073
|
-
break
|
|
1074
|
-
if (node.nameTuple in specialElements and
|
|
1075
|
-
node.name not in ("address", "div", "p")):
|
|
1076
|
-
break
|
|
1077
|
-
|
|
1078
|
-
if self.tree.elementInScope("p", variant="button"):
|
|
1079
|
-
self.parser.phase.processEndTag(
|
|
1080
|
-
impliedTagToken("p", "EndTag"))
|
|
1081
|
-
|
|
1082
|
-
self.tree.insertElement(token)
|
|
1083
|
-
|
|
1084
|
-
def startTagPlaintext(self, token):
|
|
1085
|
-
if self.tree.elementInScope("p", variant="button"):
|
|
1086
|
-
self.endTagP(impliedTagToken("p"))
|
|
1087
|
-
self.tree.insertElement(token)
|
|
1088
|
-
self.parser.tokenizer.state = self.parser.tokenizer.plaintextState
|
|
1089
|
-
|
|
1090
|
-
def startTagHeading(self, token):
|
|
1091
|
-
if self.tree.elementInScope("p", variant="button"):
|
|
1092
|
-
self.endTagP(impliedTagToken("p"))
|
|
1093
|
-
if self.tree.openElements[-1].name in headingElements:
|
|
1094
|
-
self.parser.parseError("unexpected-start-tag", {"name": token["name"]})
|
|
1095
|
-
self.tree.openElements.pop()
|
|
1096
|
-
self.tree.insertElement(token)
|
|
1097
|
-
|
|
1098
|
-
def startTagA(self, token):
|
|
1099
|
-
afeAElement = self.tree.elementInActiveFormattingElements("a")
|
|
1100
|
-
if afeAElement:
|
|
1101
|
-
self.parser.parseError("unexpected-start-tag-implies-end-tag",
|
|
1102
|
-
{"startName": "a", "endName": "a"})
|
|
1103
|
-
self.endTagFormatting(impliedTagToken("a"))
|
|
1104
|
-
if afeAElement in self.tree.openElements:
|
|
1105
|
-
self.tree.openElements.remove(afeAElement)
|
|
1106
|
-
if afeAElement in self.tree.activeFormattingElements:
|
|
1107
|
-
self.tree.activeFormattingElements.remove(afeAElement)
|
|
1108
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1109
|
-
self.addFormattingElement(token)
|
|
1110
|
-
|
|
1111
|
-
def startTagFormatting(self, token):
|
|
1112
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1113
|
-
self.addFormattingElement(token)
|
|
1114
|
-
|
|
1115
|
-
def startTagNobr(self, token):
|
|
1116
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1117
|
-
if self.tree.elementInScope("nobr"):
|
|
1118
|
-
self.parser.parseError("unexpected-start-tag-implies-end-tag",
|
|
1119
|
-
{"startName": "nobr", "endName": "nobr"})
|
|
1120
|
-
self.processEndTag(impliedTagToken("nobr"))
|
|
1121
|
-
# XXX Need tests that trigger the following
|
|
1122
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1123
|
-
self.addFormattingElement(token)
|
|
1124
|
-
|
|
1125
|
-
def startTagButton(self, token):
|
|
1126
|
-
if self.tree.elementInScope("button"):
|
|
1127
|
-
self.parser.parseError("unexpected-start-tag-implies-end-tag",
|
|
1128
|
-
{"startName": "button", "endName": "button"})
|
|
1129
|
-
self.processEndTag(impliedTagToken("button"))
|
|
1130
|
-
return token
|
|
1131
|
-
else:
|
|
1132
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1133
|
-
self.tree.insertElement(token)
|
|
1134
|
-
self.parser.framesetOK = False
|
|
1135
|
-
|
|
1136
|
-
def startTagAppletMarqueeObject(self, token):
|
|
1137
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1138
|
-
self.tree.insertElement(token)
|
|
1139
|
-
self.tree.activeFormattingElements.append(Marker)
|
|
1140
|
-
self.parser.framesetOK = False
|
|
1141
|
-
|
|
1142
|
-
def startTagXmp(self, token):
|
|
1143
|
-
if self.tree.elementInScope("p", variant="button"):
|
|
1144
|
-
self.endTagP(impliedTagToken("p"))
|
|
1145
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1146
|
-
self.parser.framesetOK = False
|
|
1147
|
-
self.parser.parseRCDataRawtext(token, "RAWTEXT")
|
|
1148
|
-
|
|
1149
|
-
def startTagTable(self, token):
|
|
1150
|
-
if self.parser.compatMode != "quirks":
|
|
1151
|
-
if self.tree.elementInScope("p", variant="button"):
|
|
1152
|
-
self.processEndTag(impliedTagToken("p"))
|
|
1153
|
-
self.tree.insertElement(token)
|
|
1154
|
-
self.parser.framesetOK = False
|
|
1155
|
-
self.parser.phase = self.parser.phases["inTable"]
|
|
1156
|
-
|
|
1157
|
-
def startTagVoidFormatting(self, token):
|
|
1158
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1159
|
-
self.tree.insertElement(token)
|
|
1160
|
-
self.tree.openElements.pop()
|
|
1161
|
-
token["selfClosingAcknowledged"] = True
|
|
1162
|
-
self.parser.framesetOK = False
|
|
1163
|
-
|
|
1164
|
-
def startTagInput(self, token):
|
|
1165
|
-
framesetOK = self.parser.framesetOK
|
|
1166
|
-
self.startTagVoidFormatting(token)
|
|
1167
|
-
if ("type" in token["data"] and
|
|
1168
|
-
token["data"]["type"].translate(asciiUpper2Lower) == "hidden"):
|
|
1169
|
-
# input type=hidden doesn't change framesetOK
|
|
1170
|
-
self.parser.framesetOK = framesetOK
|
|
1171
|
-
|
|
1172
|
-
def startTagParamSource(self, token):
|
|
1173
|
-
self.tree.insertElement(token)
|
|
1174
|
-
self.tree.openElements.pop()
|
|
1175
|
-
token["selfClosingAcknowledged"] = True
|
|
1176
|
-
|
|
1177
|
-
def startTagHr(self, token):
|
|
1178
|
-
if self.tree.elementInScope("p", variant="button"):
|
|
1179
|
-
self.endTagP(impliedTagToken("p"))
|
|
1180
|
-
self.tree.insertElement(token)
|
|
1181
|
-
self.tree.openElements.pop()
|
|
1182
|
-
token["selfClosingAcknowledged"] = True
|
|
1183
|
-
self.parser.framesetOK = False
|
|
1184
|
-
|
|
1185
|
-
def startTagImage(self, token):
|
|
1186
|
-
# No really...
|
|
1187
|
-
self.parser.parseError("unexpected-start-tag-treated-as",
|
|
1188
|
-
{"originalName": "image", "newName": "img"})
|
|
1189
|
-
self.processStartTag(impliedTagToken("img", "StartTag",
|
|
1190
|
-
attributes=token["data"],
|
|
1191
|
-
selfClosing=token["selfClosing"]))
|
|
1192
|
-
|
|
1193
|
-
def startTagIsIndex(self, token):
|
|
1194
|
-
self.parser.parseError("deprecated-tag", {"name": "isindex"})
|
|
1195
|
-
if self.tree.formPointer:
|
|
1196
|
-
return
|
|
1197
|
-
form_attrs = {}
|
|
1198
|
-
if "action" in token["data"]:
|
|
1199
|
-
form_attrs["action"] = token["data"]["action"]
|
|
1200
|
-
self.processStartTag(impliedTagToken("form", "StartTag",
|
|
1201
|
-
attributes=form_attrs))
|
|
1202
|
-
self.processStartTag(impliedTagToken("hr", "StartTag"))
|
|
1203
|
-
self.processStartTag(impliedTagToken("label", "StartTag"))
|
|
1204
|
-
# XXX Localization ...
|
|
1205
|
-
if "prompt" in token["data"]:
|
|
1206
|
-
prompt = token["data"]["prompt"]
|
|
1207
|
-
else:
|
|
1208
|
-
prompt = "This is a searchable index. Enter search keywords: "
|
|
1209
|
-
self.processCharacters(
|
|
1210
|
-
{"type": tokenTypes["Characters"], "data": prompt})
|
|
1211
|
-
attributes = token["data"].copy()
|
|
1212
|
-
if "action" in attributes:
|
|
1213
|
-
del attributes["action"]
|
|
1214
|
-
if "prompt" in attributes:
|
|
1215
|
-
del attributes["prompt"]
|
|
1216
|
-
attributes["name"] = "isindex"
|
|
1217
|
-
self.processStartTag(impliedTagToken("input", "StartTag",
|
|
1218
|
-
attributes=attributes,
|
|
1219
|
-
selfClosing=token["selfClosing"]))
|
|
1220
|
-
self.processEndTag(impliedTagToken("label"))
|
|
1221
|
-
self.processStartTag(impliedTagToken("hr", "StartTag"))
|
|
1222
|
-
self.processEndTag(impliedTagToken("form"))
|
|
1223
|
-
|
|
1224
|
-
def startTagTextarea(self, token):
|
|
1225
|
-
self.tree.insertElement(token)
|
|
1226
|
-
self.parser.tokenizer.state = self.parser.tokenizer.rcdataState
|
|
1227
|
-
self.processSpaceCharacters = self.processSpaceCharactersDropNewline
|
|
1228
|
-
self.parser.framesetOK = False
|
|
1229
|
-
|
|
1230
|
-
def startTagIFrame(self, token):
|
|
1231
|
-
self.parser.framesetOK = False
|
|
1232
|
-
self.startTagRawtext(token)
|
|
1233
|
-
|
|
1234
|
-
def startTagNoscript(self, token):
|
|
1235
|
-
if self.parser.scripting:
|
|
1236
|
-
self.startTagRawtext(token)
|
|
1237
|
-
else:
|
|
1238
|
-
self.startTagOther(token)
|
|
1239
|
-
|
|
1240
|
-
def startTagRawtext(self, token):
|
|
1241
|
-
"""iframe, noembed noframes, noscript(if scripting enabled)"""
|
|
1242
|
-
self.parser.parseRCDataRawtext(token, "RAWTEXT")
|
|
1243
|
-
|
|
1244
|
-
def startTagOpt(self, token):
|
|
1245
|
-
if self.tree.openElements[-1].name == "option":
|
|
1246
|
-
self.parser.phase.processEndTag(impliedTagToken("option"))
|
|
1247
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1248
|
-
self.parser.tree.insertElement(token)
|
|
1249
|
-
|
|
1250
|
-
def startTagSelect(self, token):
|
|
1251
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1252
|
-
self.tree.insertElement(token)
|
|
1253
|
-
self.parser.framesetOK = False
|
|
1254
|
-
if self.parser.phase in (self.parser.phases["inTable"],
|
|
1255
|
-
self.parser.phases["inCaption"],
|
|
1256
|
-
self.parser.phases["inColumnGroup"],
|
|
1257
|
-
self.parser.phases["inTableBody"],
|
|
1258
|
-
self.parser.phases["inRow"],
|
|
1259
|
-
self.parser.phases["inCell"]):
|
|
1260
|
-
self.parser.phase = self.parser.phases["inSelectInTable"]
|
|
1261
|
-
else:
|
|
1262
|
-
self.parser.phase = self.parser.phases["inSelect"]
|
|
1263
|
-
|
|
1264
|
-
def startTagRpRt(self, token):
|
|
1265
|
-
if self.tree.elementInScope("ruby"):
|
|
1266
|
-
self.tree.generateImpliedEndTags()
|
|
1267
|
-
if self.tree.openElements[-1].name != "ruby":
|
|
1268
|
-
self.parser.parseError()
|
|
1269
|
-
self.tree.insertElement(token)
|
|
1270
|
-
|
|
1271
|
-
def startTagMath(self, token):
|
|
1272
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1273
|
-
self.parser.adjustMathMLAttributes(token)
|
|
1274
|
-
self.parser.adjustForeignAttributes(token)
|
|
1275
|
-
token["namespace"] = namespaces["mathml"]
|
|
1276
|
-
self.tree.insertElement(token)
|
|
1277
|
-
# Need to get the parse error right for the case where the token
|
|
1278
|
-
# has a namespace not equal to the xmlns attribute
|
|
1279
|
-
if token["selfClosing"]:
|
|
1280
|
-
self.tree.openElements.pop()
|
|
1281
|
-
token["selfClosingAcknowledged"] = True
|
|
1282
|
-
|
|
1283
|
-
def startTagSvg(self, token):
|
|
1284
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1285
|
-
self.parser.adjustSVGAttributes(token)
|
|
1286
|
-
self.parser.adjustForeignAttributes(token)
|
|
1287
|
-
token["namespace"] = namespaces["svg"]
|
|
1288
|
-
self.tree.insertElement(token)
|
|
1289
|
-
# Need to get the parse error right for the case where the token
|
|
1290
|
-
# has a namespace not equal to the xmlns attribute
|
|
1291
|
-
if token["selfClosing"]:
|
|
1292
|
-
self.tree.openElements.pop()
|
|
1293
|
-
token["selfClosingAcknowledged"] = True
|
|
1294
|
-
|
|
1295
|
-
def startTagMisplaced(self, token):
|
|
1296
|
-
""" Elements that should be children of other elements that have a
|
|
1297
|
-
different insertion mode; here they are ignored
|
|
1298
|
-
"caption", "col", "colgroup", "frame", "frameset", "head",
|
|
1299
|
-
"option", "optgroup", "tbody", "td", "tfoot", "th", "thead",
|
|
1300
|
-
"tr", "noscript"
|
|
1301
|
-
"""
|
|
1302
|
-
self.parser.parseError("unexpected-start-tag-ignored", {"name": token["name"]})
|
|
1303
|
-
|
|
1304
|
-
def startTagOther(self, token):
|
|
1305
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1306
|
-
self.tree.insertElement(token)
|
|
1307
|
-
|
|
1308
|
-
def endTagP(self, token):
|
|
1309
|
-
if not self.tree.elementInScope("p", variant="button"):
|
|
1310
|
-
self.startTagCloseP(impliedTagToken("p", "StartTag"))
|
|
1311
|
-
self.parser.parseError("unexpected-end-tag", {"name": "p"})
|
|
1312
|
-
self.endTagP(impliedTagToken("p", "EndTag"))
|
|
1313
|
-
else:
|
|
1314
|
-
self.tree.generateImpliedEndTags("p")
|
|
1315
|
-
if self.tree.openElements[-1].name != "p":
|
|
1316
|
-
self.parser.parseError("unexpected-end-tag", {"name": "p"})
|
|
1317
|
-
node = self.tree.openElements.pop()
|
|
1318
|
-
while node.name != "p":
|
|
1319
|
-
node = self.tree.openElements.pop()
|
|
1320
|
-
|
|
1321
|
-
def endTagBody(self, token):
|
|
1322
|
-
if not self.tree.elementInScope("body"):
|
|
1323
|
-
self.parser.parseError()
|
|
1324
|
-
return
|
|
1325
|
-
elif self.tree.openElements[-1].name != "body":
|
|
1326
|
-
for node in self.tree.openElements[2:]:
|
|
1327
|
-
if node.name not in frozenset(("dd", "dt", "li", "optgroup",
|
|
1328
|
-
"option", "p", "rp", "rt",
|
|
1329
|
-
"tbody", "td", "tfoot",
|
|
1330
|
-
"th", "thead", "tr", "body",
|
|
1331
|
-
"html")):
|
|
1332
|
-
# Not sure this is the correct name for the parse error
|
|
1333
|
-
self.parser.parseError(
|
|
1334
|
-
"expected-one-end-tag-but-got-another",
|
|
1335
|
-
{"gotName": "body", "expectedName": node.name})
|
|
1336
|
-
break
|
|
1337
|
-
self.parser.phase = self.parser.phases["afterBody"]
|
|
1338
|
-
|
|
1339
|
-
def endTagHtml(self, token):
|
|
1340
|
-
# We repeat the test for the body end tag token being ignored here
|
|
1341
|
-
if self.tree.elementInScope("body"):
|
|
1342
|
-
self.endTagBody(impliedTagToken("body"))
|
|
1343
|
-
return token
|
|
1344
|
-
|
|
1345
|
-
def endTagBlock(self, token):
|
|
1346
|
-
# Put us back in the right whitespace handling mode
|
|
1347
|
-
if token["name"] == "pre":
|
|
1348
|
-
self.processSpaceCharacters = self.processSpaceCharactersNonPre
|
|
1349
|
-
inScope = self.tree.elementInScope(token["name"])
|
|
1350
|
-
if inScope:
|
|
1351
|
-
self.tree.generateImpliedEndTags()
|
|
1352
|
-
if self.tree.openElements[-1].name != token["name"]:
|
|
1353
|
-
self.parser.parseError("end-tag-too-early", {"name": token["name"]})
|
|
1354
|
-
if inScope:
|
|
1355
|
-
node = self.tree.openElements.pop()
|
|
1356
|
-
while node.name != token["name"]:
|
|
1357
|
-
node = self.tree.openElements.pop()
|
|
1358
|
-
|
|
1359
|
-
def endTagForm(self, token):
|
|
1360
|
-
node = self.tree.formPointer
|
|
1361
|
-
self.tree.formPointer = None
|
|
1362
|
-
if node is None or not self.tree.elementInScope(node):
|
|
1363
|
-
self.parser.parseError("unexpected-end-tag",
|
|
1364
|
-
{"name": "form"})
|
|
1365
|
-
else:
|
|
1366
|
-
self.tree.generateImpliedEndTags()
|
|
1367
|
-
if self.tree.openElements[-1] != node:
|
|
1368
|
-
self.parser.parseError("end-tag-too-early-ignored",
|
|
1369
|
-
{"name": "form"})
|
|
1370
|
-
self.tree.openElements.remove(node)
|
|
1371
|
-
|
|
1372
|
-
def endTagListItem(self, token):
|
|
1373
|
-
if token["name"] == "li":
|
|
1374
|
-
variant = "list"
|
|
1375
|
-
else:
|
|
1376
|
-
variant = None
|
|
1377
|
-
if not self.tree.elementInScope(token["name"], variant=variant):
|
|
1378
|
-
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
|
|
1379
|
-
else:
|
|
1380
|
-
self.tree.generateImpliedEndTags(exclude=token["name"])
|
|
1381
|
-
if self.tree.openElements[-1].name != token["name"]:
|
|
1382
|
-
self.parser.parseError(
|
|
1383
|
-
"end-tag-too-early",
|
|
1384
|
-
{"name": token["name"]})
|
|
1385
|
-
node = self.tree.openElements.pop()
|
|
1386
|
-
while node.name != token["name"]:
|
|
1387
|
-
node = self.tree.openElements.pop()
|
|
1388
|
-
|
|
1389
|
-
def endTagHeading(self, token):
|
|
1390
|
-
for item in headingElements:
|
|
1391
|
-
if self.tree.elementInScope(item):
|
|
1392
|
-
self.tree.generateImpliedEndTags()
|
|
1393
|
-
break
|
|
1394
|
-
if self.tree.openElements[-1].name != token["name"]:
|
|
1395
|
-
self.parser.parseError("end-tag-too-early", {"name": token["name"]})
|
|
1396
|
-
|
|
1397
|
-
for item in headingElements:
|
|
1398
|
-
if self.tree.elementInScope(item):
|
|
1399
|
-
item = self.tree.openElements.pop()
|
|
1400
|
-
while item.name not in headingElements:
|
|
1401
|
-
item = self.tree.openElements.pop()
|
|
1402
|
-
break
|
|
1403
|
-
|
|
1404
|
-
def endTagFormatting(self, token):
|
|
1405
|
-
"""The much-feared adoption agency algorithm"""
|
|
1406
|
-
# http://svn.whatwg.org/webapps/complete.html#adoptionAgency revision 7867
|
|
1407
|
-
# XXX Better parseError messages appreciated.
|
|
1408
|
-
|
|
1409
|
-
# Step 1
|
|
1410
|
-
outerLoopCounter = 0
|
|
1411
|
-
|
|
1412
|
-
# Step 2
|
|
1413
|
-
while outerLoopCounter < 8:
|
|
1414
|
-
|
|
1415
|
-
# Step 3
|
|
1416
|
-
outerLoopCounter += 1
|
|
1417
|
-
|
|
1418
|
-
# Step 4:
|
|
1419
|
-
|
|
1420
|
-
# Let the formatting element be the last element in
|
|
1421
|
-
# the list of active formatting elements that:
|
|
1422
|
-
# - is between the end of the list and the last scope
|
|
1423
|
-
# marker in the list, if any, or the start of the list
|
|
1424
|
-
# otherwise, and
|
|
1425
|
-
# - has the same tag name as the token.
|
|
1426
|
-
formattingElement = self.tree.elementInActiveFormattingElements(
|
|
1427
|
-
token["name"])
|
|
1428
|
-
if (not formattingElement or
|
|
1429
|
-
(formattingElement in self.tree.openElements and
|
|
1430
|
-
not self.tree.elementInScope(formattingElement.name))):
|
|
1431
|
-
# If there is no such node, then abort these steps
|
|
1432
|
-
# and instead act as described in the "any other
|
|
1433
|
-
# end tag" entry below.
|
|
1434
|
-
self.endTagOther(token)
|
|
1435
|
-
return
|
|
1436
|
-
|
|
1437
|
-
# Otherwise, if there is such a node, but that node is
|
|
1438
|
-
# not in the stack of open elements, then this is a
|
|
1439
|
-
# parse error; remove the element from the list, and
|
|
1440
|
-
# abort these steps.
|
|
1441
|
-
elif formattingElement not in self.tree.openElements:
|
|
1442
|
-
self.parser.parseError("adoption-agency-1.2", {"name": token["name"]})
|
|
1443
|
-
self.tree.activeFormattingElements.remove(formattingElement)
|
|
1444
|
-
return
|
|
1445
|
-
|
|
1446
|
-
# Otherwise, if there is such a node, and that node is
|
|
1447
|
-
# also in the stack of open elements, but the element
|
|
1448
|
-
# is not in scope, then this is a parse error; ignore
|
|
1449
|
-
# the token, and abort these steps.
|
|
1450
|
-
elif not self.tree.elementInScope(formattingElement.name):
|
|
1451
|
-
self.parser.parseError("adoption-agency-4.4", {"name": token["name"]})
|
|
1452
|
-
return
|
|
1453
|
-
|
|
1454
|
-
# Otherwise, there is a formatting element and that
|
|
1455
|
-
# element is in the stack and is in scope. If the
|
|
1456
|
-
# element is not the current node, this is a parse
|
|
1457
|
-
# error. In any case, proceed with the algorithm as
|
|
1458
|
-
# written in the following steps.
|
|
1459
|
-
else:
|
|
1460
|
-
if formattingElement != self.tree.openElements[-1]:
|
|
1461
|
-
self.parser.parseError("adoption-agency-1.3", {"name": token["name"]})
|
|
1462
|
-
|
|
1463
|
-
# Step 5:
|
|
1464
|
-
|
|
1465
|
-
# Let the furthest block be the topmost node in the
|
|
1466
|
-
# stack of open elements that is lower in the stack
|
|
1467
|
-
# than the formatting element, and is an element in
|
|
1468
|
-
# the special category. There might not be one.
|
|
1469
|
-
afeIndex = self.tree.openElements.index(formattingElement)
|
|
1470
|
-
furthestBlock = None
|
|
1471
|
-
for element in self.tree.openElements[afeIndex:]:
|
|
1472
|
-
if element.nameTuple in specialElements:
|
|
1473
|
-
furthestBlock = element
|
|
1474
|
-
break
|
|
1475
|
-
|
|
1476
|
-
# Step 6:
|
|
1477
|
-
|
|
1478
|
-
# If there is no furthest block, then the UA must
|
|
1479
|
-
# first pop all the nodes from the bottom of the stack
|
|
1480
|
-
# of open elements, from the current node up to and
|
|
1481
|
-
# including the formatting element, then remove the
|
|
1482
|
-
# formatting element from the list of active
|
|
1483
|
-
# formatting elements, and finally abort these steps.
|
|
1484
|
-
if furthestBlock is None:
|
|
1485
|
-
element = self.tree.openElements.pop()
|
|
1486
|
-
while element != formattingElement:
|
|
1487
|
-
element = self.tree.openElements.pop()
|
|
1488
|
-
self.tree.activeFormattingElements.remove(element)
|
|
1489
|
-
return
|
|
1490
|
-
|
|
1491
|
-
# Step 7
|
|
1492
|
-
commonAncestor = self.tree.openElements[afeIndex - 1]
|
|
1493
|
-
|
|
1494
|
-
# Step 8:
|
|
1495
|
-
# The bookmark is supposed to help us identify where to reinsert
|
|
1496
|
-
# nodes in step 15. We have to ensure that we reinsert nodes after
|
|
1497
|
-
# the node before the active formatting element. Note the bookmark
|
|
1498
|
-
# can move in step 9.7
|
|
1499
|
-
bookmark = self.tree.activeFormattingElements.index(formattingElement)
|
|
1500
|
-
|
|
1501
|
-
# Step 9
|
|
1502
|
-
lastNode = node = furthestBlock
|
|
1503
|
-
innerLoopCounter = 0
|
|
1504
|
-
|
|
1505
|
-
index = self.tree.openElements.index(node)
|
|
1506
|
-
while innerLoopCounter < 3:
|
|
1507
|
-
innerLoopCounter += 1
|
|
1508
|
-
# Node is element before node in open elements
|
|
1509
|
-
index -= 1
|
|
1510
|
-
node = self.tree.openElements[index]
|
|
1511
|
-
if node not in self.tree.activeFormattingElements:
|
|
1512
|
-
self.tree.openElements.remove(node)
|
|
1513
|
-
continue
|
|
1514
|
-
# Step 9.6
|
|
1515
|
-
if node == formattingElement:
|
|
1516
|
-
break
|
|
1517
|
-
# Step 9.7
|
|
1518
|
-
if lastNode == furthestBlock:
|
|
1519
|
-
bookmark = self.tree.activeFormattingElements.index(node) + 1
|
|
1520
|
-
# Step 9.8
|
|
1521
|
-
clone = node.cloneNode()
|
|
1522
|
-
# Replace node with clone
|
|
1523
|
-
self.tree.activeFormattingElements[
|
|
1524
|
-
self.tree.activeFormattingElements.index(node)] = clone
|
|
1525
|
-
self.tree.openElements[
|
|
1526
|
-
self.tree.openElements.index(node)] = clone
|
|
1527
|
-
node = clone
|
|
1528
|
-
# Step 9.9
|
|
1529
|
-
# Remove lastNode from its parents, if any
|
|
1530
|
-
if lastNode.parent:
|
|
1531
|
-
lastNode.parent.removeChild(lastNode)
|
|
1532
|
-
node.appendChild(lastNode)
|
|
1533
|
-
# Step 9.10
|
|
1534
|
-
lastNode = node
|
|
1535
|
-
|
|
1536
|
-
# Step 10
|
|
1537
|
-
# Foster parent lastNode if commonAncestor is a
|
|
1538
|
-
# table, tbody, tfoot, thead, or tr we need to foster
|
|
1539
|
-
# parent the lastNode
|
|
1540
|
-
if lastNode.parent:
|
|
1541
|
-
lastNode.parent.removeChild(lastNode)
|
|
1542
|
-
|
|
1543
|
-
if commonAncestor.name in frozenset(("table", "tbody", "tfoot", "thead", "tr")):
|
|
1544
|
-
parent, insertBefore = self.tree.getTableMisnestedNodePosition()
|
|
1545
|
-
parent.insertBefore(lastNode, insertBefore)
|
|
1546
|
-
else:
|
|
1547
|
-
commonAncestor.appendChild(lastNode)
|
|
1548
|
-
|
|
1549
|
-
# Step 11
|
|
1550
|
-
clone = formattingElement.cloneNode()
|
|
1551
|
-
|
|
1552
|
-
# Step 12
|
|
1553
|
-
furthestBlock.reparentChildren(clone)
|
|
1554
|
-
|
|
1555
|
-
# Step 13
|
|
1556
|
-
furthestBlock.appendChild(clone)
|
|
1557
|
-
|
|
1558
|
-
# Step 14
|
|
1559
|
-
self.tree.activeFormattingElements.remove(formattingElement)
|
|
1560
|
-
self.tree.activeFormattingElements.insert(bookmark, clone)
|
|
1561
|
-
|
|
1562
|
-
# Step 15
|
|
1563
|
-
self.tree.openElements.remove(formattingElement)
|
|
1564
|
-
self.tree.openElements.insert(
|
|
1565
|
-
self.tree.openElements.index(furthestBlock) + 1, clone)
|
|
1566
|
-
|
|
1567
|
-
def endTagAppletMarqueeObject(self, token):
|
|
1568
|
-
if self.tree.elementInScope(token["name"]):
|
|
1569
|
-
self.tree.generateImpliedEndTags()
|
|
1570
|
-
if self.tree.openElements[-1].name != token["name"]:
|
|
1571
|
-
self.parser.parseError("end-tag-too-early", {"name": token["name"]})
|
|
1572
|
-
|
|
1573
|
-
if self.tree.elementInScope(token["name"]):
|
|
1574
|
-
element = self.tree.openElements.pop()
|
|
1575
|
-
while element.name != token["name"]:
|
|
1576
|
-
element = self.tree.openElements.pop()
|
|
1577
|
-
self.tree.clearActiveFormattingElements()
|
|
1578
|
-
|
|
1579
|
-
def endTagBr(self, token):
|
|
1580
|
-
self.parser.parseError("unexpected-end-tag-treated-as",
|
|
1581
|
-
{"originalName": "br", "newName": "br element"})
|
|
1582
|
-
self.tree.reconstructActiveFormattingElements()
|
|
1583
|
-
self.tree.insertElement(impliedTagToken("br", "StartTag"))
|
|
1584
|
-
self.tree.openElements.pop()
|
|
1585
|
-
|
|
1586
|
-
def endTagOther(self, token):
|
|
1587
|
-
for node in self.tree.openElements[::-1]:
|
|
1588
|
-
if node.name == token["name"]:
|
|
1589
|
-
self.tree.generateImpliedEndTags(exclude=token["name"])
|
|
1590
|
-
if self.tree.openElements[-1].name != token["name"]:
|
|
1591
|
-
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
|
|
1592
|
-
while self.tree.openElements.pop() != node:
|
|
1593
|
-
pass
|
|
1594
|
-
break
|
|
1595
|
-
else:
|
|
1596
|
-
if node.nameTuple in specialElements:
|
|
1597
|
-
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
|
|
1598
|
-
break
|
|
1599
|
-
|
|
1600
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
1601
|
-
("html", Phase.startTagHtml),
|
|
1602
|
-
(("base", "basefont", "bgsound", "command", "link", "meta",
|
|
1603
|
-
"script", "style", "title"),
|
|
1604
|
-
startTagProcessInHead),
|
|
1605
|
-
("body", startTagBody),
|
|
1606
|
-
("frameset", startTagFrameset),
|
|
1607
|
-
(("address", "article", "aside", "blockquote", "center", "details",
|
|
1608
|
-
"dir", "div", "dl", "fieldset", "figcaption", "figure",
|
|
1609
|
-
"footer", "header", "hgroup", "main", "menu", "nav", "ol", "p",
|
|
1610
|
-
"section", "summary", "ul"),
|
|
1611
|
-
startTagCloseP),
|
|
1612
|
-
(headingElements, startTagHeading),
|
|
1613
|
-
(("pre", "listing"), startTagPreListing),
|
|
1614
|
-
("form", startTagForm),
|
|
1615
|
-
(("li", "dd", "dt"), startTagListItem),
|
|
1616
|
-
("plaintext", startTagPlaintext),
|
|
1617
|
-
("a", startTagA),
|
|
1618
|
-
(("b", "big", "code", "em", "font", "i", "s", "small", "strike",
|
|
1619
|
-
"strong", "tt", "u"), startTagFormatting),
|
|
1620
|
-
("nobr", startTagNobr),
|
|
1621
|
-
("button", startTagButton),
|
|
1622
|
-
(("applet", "marquee", "object"), startTagAppletMarqueeObject),
|
|
1623
|
-
("xmp", startTagXmp),
|
|
1624
|
-
("table", startTagTable),
|
|
1625
|
-
(("area", "br", "embed", "img", "keygen", "wbr"),
|
|
1626
|
-
startTagVoidFormatting),
|
|
1627
|
-
(("param", "source", "track"), startTagParamSource),
|
|
1628
|
-
("input", startTagInput),
|
|
1629
|
-
("hr", startTagHr),
|
|
1630
|
-
("image", startTagImage),
|
|
1631
|
-
("isindex", startTagIsIndex),
|
|
1632
|
-
("textarea", startTagTextarea),
|
|
1633
|
-
("iframe", startTagIFrame),
|
|
1634
|
-
("noscript", startTagNoscript),
|
|
1635
|
-
(("noembed", "noframes"), startTagRawtext),
|
|
1636
|
-
("select", startTagSelect),
|
|
1637
|
-
(("rp", "rt"), startTagRpRt),
|
|
1638
|
-
(("option", "optgroup"), startTagOpt),
|
|
1639
|
-
(("math"), startTagMath),
|
|
1640
|
-
(("svg"), startTagSvg),
|
|
1641
|
-
(("caption", "col", "colgroup", "frame", "head",
|
|
1642
|
-
"tbody", "td", "tfoot", "th", "thead",
|
|
1643
|
-
"tr"), startTagMisplaced)
|
|
1644
|
-
])
|
|
1645
|
-
startTagHandler.default = startTagOther
|
|
1646
|
-
|
|
1647
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
1648
|
-
("body", endTagBody),
|
|
1649
|
-
("html", endTagHtml),
|
|
1650
|
-
(("address", "article", "aside", "blockquote", "button", "center",
|
|
1651
|
-
"details", "dialog", "dir", "div", "dl", "fieldset", "figcaption", "figure",
|
|
1652
|
-
"footer", "header", "hgroup", "listing", "main", "menu", "nav", "ol", "pre",
|
|
1653
|
-
"section", "summary", "ul"), endTagBlock),
|
|
1654
|
-
("form", endTagForm),
|
|
1655
|
-
("p", endTagP),
|
|
1656
|
-
(("dd", "dt", "li"), endTagListItem),
|
|
1657
|
-
(headingElements, endTagHeading),
|
|
1658
|
-
(("a", "b", "big", "code", "em", "font", "i", "nobr", "s", "small",
|
|
1659
|
-
"strike", "strong", "tt", "u"), endTagFormatting),
|
|
1660
|
-
(("applet", "marquee", "object"), endTagAppletMarqueeObject),
|
|
1661
|
-
("br", endTagBr),
|
|
1662
|
-
])
|
|
1663
|
-
endTagHandler.default = endTagOther
|
|
1664
|
-
|
|
1665
|
-
class TextPhase(Phase):
|
|
1666
|
-
__slots__ = tuple()
|
|
1667
|
-
|
|
1668
|
-
def processCharacters(self, token):
|
|
1669
|
-
self.tree.insertText(token["data"])
|
|
1670
|
-
|
|
1671
|
-
def processEOF(self):
|
|
1672
|
-
self.parser.parseError("expected-named-closing-tag-but-got-eof",
|
|
1673
|
-
{"name": self.tree.openElements[-1].name})
|
|
1674
|
-
self.tree.openElements.pop()
|
|
1675
|
-
self.parser.phase = self.parser.originalPhase
|
|
1676
|
-
return True
|
|
1677
|
-
|
|
1678
|
-
def startTagOther(self, token):
|
|
1679
|
-
assert False, "Tried to process start tag %s in RCDATA/RAWTEXT mode" % token['name']
|
|
1680
|
-
|
|
1681
|
-
def endTagScript(self, token):
|
|
1682
|
-
node = self.tree.openElements.pop()
|
|
1683
|
-
assert node.name == "script"
|
|
1684
|
-
self.parser.phase = self.parser.originalPhase
|
|
1685
|
-
# The rest of this method is all stuff that only happens if
|
|
1686
|
-
# document.write works
|
|
1687
|
-
|
|
1688
|
-
def endTagOther(self, token):
|
|
1689
|
-
self.tree.openElements.pop()
|
|
1690
|
-
self.parser.phase = self.parser.originalPhase
|
|
1691
|
-
|
|
1692
|
-
startTagHandler = _utils.MethodDispatcher([])
|
|
1693
|
-
startTagHandler.default = startTagOther
|
|
1694
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
1695
|
-
("script", endTagScript)])
|
|
1696
|
-
endTagHandler.default = endTagOther
|
|
1697
|
-
|
|
1698
|
-
class InTablePhase(Phase):
|
|
1699
|
-
# http://www.whatwg.org/specs/web-apps/current-work/#in-table
|
|
1700
|
-
__slots__ = tuple()
|
|
1701
|
-
|
|
1702
|
-
# helper methods
|
|
1703
|
-
def clearStackToTableContext(self):
|
|
1704
|
-
# "clear the stack back to a table context"
|
|
1705
|
-
while self.tree.openElements[-1].name not in ("table", "html"):
|
|
1706
|
-
# self.parser.parseError("unexpected-implied-end-tag-in-table",
|
|
1707
|
-
# {"name": self.tree.openElements[-1].name})
|
|
1708
|
-
self.tree.openElements.pop()
|
|
1709
|
-
# When the current node is <html> it's an innerHTML case
|
|
1710
|
-
|
|
1711
|
-
# processing methods
|
|
1712
|
-
def processEOF(self):
|
|
1713
|
-
if self.tree.openElements[-1].name != "html":
|
|
1714
|
-
self.parser.parseError("eof-in-table")
|
|
1715
|
-
else:
|
|
1716
|
-
assert self.parser.innerHTML
|
|
1717
|
-
# Stop parsing
|
|
1718
|
-
|
|
1719
|
-
def processSpaceCharacters(self, token):
|
|
1720
|
-
originalPhase = self.parser.phase
|
|
1721
|
-
self.parser.phase = self.parser.phases["inTableText"]
|
|
1722
|
-
self.parser.phase.originalPhase = originalPhase
|
|
1723
|
-
self.parser.phase.processSpaceCharacters(token)
|
|
1724
|
-
|
|
1725
|
-
def processCharacters(self, token):
|
|
1726
|
-
originalPhase = self.parser.phase
|
|
1727
|
-
self.parser.phase = self.parser.phases["inTableText"]
|
|
1728
|
-
self.parser.phase.originalPhase = originalPhase
|
|
1729
|
-
self.parser.phase.processCharacters(token)
|
|
1730
|
-
|
|
1731
|
-
def insertText(self, token):
|
|
1732
|
-
# If we get here there must be at least one non-whitespace character
|
|
1733
|
-
# Do the table magic!
|
|
1734
|
-
self.tree.insertFromTable = True
|
|
1735
|
-
self.parser.phases["inBody"].processCharacters(token)
|
|
1736
|
-
self.tree.insertFromTable = False
|
|
1737
|
-
|
|
1738
|
-
def startTagCaption(self, token):
|
|
1739
|
-
self.clearStackToTableContext()
|
|
1740
|
-
self.tree.activeFormattingElements.append(Marker)
|
|
1741
|
-
self.tree.insertElement(token)
|
|
1742
|
-
self.parser.phase = self.parser.phases["inCaption"]
|
|
1743
|
-
|
|
1744
|
-
def startTagColgroup(self, token):
|
|
1745
|
-
self.clearStackToTableContext()
|
|
1746
|
-
self.tree.insertElement(token)
|
|
1747
|
-
self.parser.phase = self.parser.phases["inColumnGroup"]
|
|
1748
|
-
|
|
1749
|
-
def startTagCol(self, token):
|
|
1750
|
-
self.startTagColgroup(impliedTagToken("colgroup", "StartTag"))
|
|
1751
|
-
return token
|
|
1752
|
-
|
|
1753
|
-
def startTagRowGroup(self, token):
|
|
1754
|
-
self.clearStackToTableContext()
|
|
1755
|
-
self.tree.insertElement(token)
|
|
1756
|
-
self.parser.phase = self.parser.phases["inTableBody"]
|
|
1757
|
-
|
|
1758
|
-
def startTagImplyTbody(self, token):
|
|
1759
|
-
self.startTagRowGroup(impliedTagToken("tbody", "StartTag"))
|
|
1760
|
-
return token
|
|
1761
|
-
|
|
1762
|
-
def startTagTable(self, token):
|
|
1763
|
-
self.parser.parseError("unexpected-start-tag-implies-end-tag",
|
|
1764
|
-
{"startName": "table", "endName": "table"})
|
|
1765
|
-
self.parser.phase.processEndTag(impliedTagToken("table"))
|
|
1766
|
-
if not self.parser.innerHTML:
|
|
1767
|
-
return token
|
|
1768
|
-
|
|
1769
|
-
def startTagStyleScript(self, token):
|
|
1770
|
-
return self.parser.phases["inHead"].processStartTag(token)
|
|
1771
|
-
|
|
1772
|
-
def startTagInput(self, token):
|
|
1773
|
-
if ("type" in token["data"] and
|
|
1774
|
-
token["data"]["type"].translate(asciiUpper2Lower) == "hidden"):
|
|
1775
|
-
self.parser.parseError("unexpected-hidden-input-in-table")
|
|
1776
|
-
self.tree.insertElement(token)
|
|
1777
|
-
# XXX associate with form
|
|
1778
|
-
self.tree.openElements.pop()
|
|
1779
|
-
else:
|
|
1780
|
-
self.startTagOther(token)
|
|
1781
|
-
|
|
1782
|
-
def startTagForm(self, token):
|
|
1783
|
-
self.parser.parseError("unexpected-form-in-table")
|
|
1784
|
-
if self.tree.formPointer is None:
|
|
1785
|
-
self.tree.insertElement(token)
|
|
1786
|
-
self.tree.formPointer = self.tree.openElements[-1]
|
|
1787
|
-
self.tree.openElements.pop()
|
|
1788
|
-
|
|
1789
|
-
def startTagOther(self, token):
|
|
1790
|
-
self.parser.parseError("unexpected-start-tag-implies-table-voodoo", {"name": token["name"]})
|
|
1791
|
-
# Do the table magic!
|
|
1792
|
-
self.tree.insertFromTable = True
|
|
1793
|
-
self.parser.phases["inBody"].processStartTag(token)
|
|
1794
|
-
self.tree.insertFromTable = False
|
|
1795
|
-
|
|
1796
|
-
def endTagTable(self, token):
|
|
1797
|
-
if self.tree.elementInScope("table", variant="table"):
|
|
1798
|
-
self.tree.generateImpliedEndTags()
|
|
1799
|
-
if self.tree.openElements[-1].name != "table":
|
|
1800
|
-
self.parser.parseError("end-tag-too-early-named",
|
|
1801
|
-
{"gotName": "table",
|
|
1802
|
-
"expectedName": self.tree.openElements[-1].name})
|
|
1803
|
-
while self.tree.openElements[-1].name != "table":
|
|
1804
|
-
self.tree.openElements.pop()
|
|
1805
|
-
self.tree.openElements.pop()
|
|
1806
|
-
self.parser.resetInsertionMode()
|
|
1807
|
-
else:
|
|
1808
|
-
# innerHTML case
|
|
1809
|
-
assert self.parser.innerHTML
|
|
1810
|
-
self.parser.parseError()
|
|
1811
|
-
|
|
1812
|
-
def endTagIgnore(self, token):
|
|
1813
|
-
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
|
|
1814
|
-
|
|
1815
|
-
def endTagOther(self, token):
|
|
1816
|
-
self.parser.parseError("unexpected-end-tag-implies-table-voodoo", {"name": token["name"]})
|
|
1817
|
-
# Do the table magic!
|
|
1818
|
-
self.tree.insertFromTable = True
|
|
1819
|
-
self.parser.phases["inBody"].processEndTag(token)
|
|
1820
|
-
self.tree.insertFromTable = False
|
|
1821
|
-
|
|
1822
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
1823
|
-
("html", Phase.startTagHtml),
|
|
1824
|
-
("caption", startTagCaption),
|
|
1825
|
-
("colgroup", startTagColgroup),
|
|
1826
|
-
("col", startTagCol),
|
|
1827
|
-
(("tbody", "tfoot", "thead"), startTagRowGroup),
|
|
1828
|
-
(("td", "th", "tr"), startTagImplyTbody),
|
|
1829
|
-
("table", startTagTable),
|
|
1830
|
-
(("style", "script"), startTagStyleScript),
|
|
1831
|
-
("input", startTagInput),
|
|
1832
|
-
("form", startTagForm)
|
|
1833
|
-
])
|
|
1834
|
-
startTagHandler.default = startTagOther
|
|
1835
|
-
|
|
1836
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
1837
|
-
("table", endTagTable),
|
|
1838
|
-
(("body", "caption", "col", "colgroup", "html", "tbody", "td",
|
|
1839
|
-
"tfoot", "th", "thead", "tr"), endTagIgnore)
|
|
1840
|
-
])
|
|
1841
|
-
endTagHandler.default = endTagOther
|
|
1842
|
-
|
|
1843
|
-
class InTableTextPhase(Phase):
|
|
1844
|
-
__slots__ = ("originalPhase", "characterTokens")
|
|
1845
|
-
|
|
1846
|
-
def __init__(self, *args, **kwargs):
|
|
1847
|
-
super(InTableTextPhase, self).__init__(*args, **kwargs)
|
|
1848
|
-
self.originalPhase = None
|
|
1849
|
-
self.characterTokens = []
|
|
1850
|
-
|
|
1851
|
-
def flushCharacters(self):
|
|
1852
|
-
data = "".join([item["data"] for item in self.characterTokens])
|
|
1853
|
-
if any([item not in spaceCharacters for item in data]):
|
|
1854
|
-
token = {"type": tokenTypes["Characters"], "data": data}
|
|
1855
|
-
self.parser.phases["inTable"].insertText(token)
|
|
1856
|
-
elif data:
|
|
1857
|
-
self.tree.insertText(data)
|
|
1858
|
-
self.characterTokens = []
|
|
1859
|
-
|
|
1860
|
-
def processComment(self, token):
|
|
1861
|
-
self.flushCharacters()
|
|
1862
|
-
self.parser.phase = self.originalPhase
|
|
1863
|
-
return token
|
|
1864
|
-
|
|
1865
|
-
def processEOF(self):
|
|
1866
|
-
self.flushCharacters()
|
|
1867
|
-
self.parser.phase = self.originalPhase
|
|
1868
|
-
return True
|
|
1869
|
-
|
|
1870
|
-
def processCharacters(self, token):
|
|
1871
|
-
if token["data"] == "\u0000":
|
|
1872
|
-
return
|
|
1873
|
-
self.characterTokens.append(token)
|
|
1874
|
-
|
|
1875
|
-
def processSpaceCharacters(self, token):
|
|
1876
|
-
# pretty sure we should never reach here
|
|
1877
|
-
self.characterTokens.append(token)
|
|
1878
|
-
# assert False
|
|
1879
|
-
|
|
1880
|
-
def processStartTag(self, token):
|
|
1881
|
-
self.flushCharacters()
|
|
1882
|
-
self.parser.phase = self.originalPhase
|
|
1883
|
-
return token
|
|
1884
|
-
|
|
1885
|
-
def processEndTag(self, token):
|
|
1886
|
-
self.flushCharacters()
|
|
1887
|
-
self.parser.phase = self.originalPhase
|
|
1888
|
-
return token
|
|
1889
|
-
|
|
1890
|
-
class InCaptionPhase(Phase):
|
|
1891
|
-
# http://www.whatwg.org/specs/web-apps/current-work/#in-caption
|
|
1892
|
-
__slots__ = tuple()
|
|
1893
|
-
|
|
1894
|
-
def ignoreEndTagCaption(self):
|
|
1895
|
-
return not self.tree.elementInScope("caption", variant="table")
|
|
1896
|
-
|
|
1897
|
-
def processEOF(self):
|
|
1898
|
-
self.parser.phases["inBody"].processEOF()
|
|
1899
|
-
|
|
1900
|
-
def processCharacters(self, token):
|
|
1901
|
-
return self.parser.phases["inBody"].processCharacters(token)
|
|
1902
|
-
|
|
1903
|
-
def startTagTableElement(self, token):
|
|
1904
|
-
self.parser.parseError()
|
|
1905
|
-
# XXX Have to duplicate logic here to find out if the tag is ignored
|
|
1906
|
-
ignoreEndTag = self.ignoreEndTagCaption()
|
|
1907
|
-
self.parser.phase.processEndTag(impliedTagToken("caption"))
|
|
1908
|
-
if not ignoreEndTag:
|
|
1909
|
-
return token
|
|
1910
|
-
|
|
1911
|
-
def startTagOther(self, token):
|
|
1912
|
-
return self.parser.phases["inBody"].processStartTag(token)
|
|
1913
|
-
|
|
1914
|
-
def endTagCaption(self, token):
|
|
1915
|
-
if not self.ignoreEndTagCaption():
|
|
1916
|
-
# AT this code is quite similar to endTagTable in "InTable"
|
|
1917
|
-
self.tree.generateImpliedEndTags()
|
|
1918
|
-
if self.tree.openElements[-1].name != "caption":
|
|
1919
|
-
self.parser.parseError("expected-one-end-tag-but-got-another",
|
|
1920
|
-
{"gotName": "caption",
|
|
1921
|
-
"expectedName": self.tree.openElements[-1].name})
|
|
1922
|
-
while self.tree.openElements[-1].name != "caption":
|
|
1923
|
-
self.tree.openElements.pop()
|
|
1924
|
-
self.tree.openElements.pop()
|
|
1925
|
-
self.tree.clearActiveFormattingElements()
|
|
1926
|
-
self.parser.phase = self.parser.phases["inTable"]
|
|
1927
|
-
else:
|
|
1928
|
-
# innerHTML case
|
|
1929
|
-
assert self.parser.innerHTML
|
|
1930
|
-
self.parser.parseError()
|
|
1931
|
-
|
|
1932
|
-
def endTagTable(self, token):
|
|
1933
|
-
self.parser.parseError()
|
|
1934
|
-
ignoreEndTag = self.ignoreEndTagCaption()
|
|
1935
|
-
self.parser.phase.processEndTag(impliedTagToken("caption"))
|
|
1936
|
-
if not ignoreEndTag:
|
|
1937
|
-
return token
|
|
1938
|
-
|
|
1939
|
-
def endTagIgnore(self, token):
|
|
1940
|
-
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
|
|
1941
|
-
|
|
1942
|
-
def endTagOther(self, token):
|
|
1943
|
-
return self.parser.phases["inBody"].processEndTag(token)
|
|
1944
|
-
|
|
1945
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
1946
|
-
("html", Phase.startTagHtml),
|
|
1947
|
-
(("caption", "col", "colgroup", "tbody", "td", "tfoot", "th",
|
|
1948
|
-
"thead", "tr"), startTagTableElement)
|
|
1949
|
-
])
|
|
1950
|
-
startTagHandler.default = startTagOther
|
|
1951
|
-
|
|
1952
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
1953
|
-
("caption", endTagCaption),
|
|
1954
|
-
("table", endTagTable),
|
|
1955
|
-
(("body", "col", "colgroup", "html", "tbody", "td", "tfoot", "th",
|
|
1956
|
-
"thead", "tr"), endTagIgnore)
|
|
1957
|
-
])
|
|
1958
|
-
endTagHandler.default = endTagOther
|
|
1959
|
-
|
|
1960
|
-
class InColumnGroupPhase(Phase):
|
|
1961
|
-
# http://www.whatwg.org/specs/web-apps/current-work/#in-column
|
|
1962
|
-
__slots__ = tuple()
|
|
1963
|
-
|
|
1964
|
-
def ignoreEndTagColgroup(self):
|
|
1965
|
-
return self.tree.openElements[-1].name == "html"
|
|
1966
|
-
|
|
1967
|
-
def processEOF(self):
|
|
1968
|
-
if self.tree.openElements[-1].name == "html":
|
|
1969
|
-
assert self.parser.innerHTML
|
|
1970
|
-
return
|
|
1971
|
-
else:
|
|
1972
|
-
ignoreEndTag = self.ignoreEndTagColgroup()
|
|
1973
|
-
self.endTagColgroup(impliedTagToken("colgroup"))
|
|
1974
|
-
if not ignoreEndTag:
|
|
1975
|
-
return True
|
|
1976
|
-
|
|
1977
|
-
def processCharacters(self, token):
|
|
1978
|
-
ignoreEndTag = self.ignoreEndTagColgroup()
|
|
1979
|
-
self.endTagColgroup(impliedTagToken("colgroup"))
|
|
1980
|
-
if not ignoreEndTag:
|
|
1981
|
-
return token
|
|
1982
|
-
|
|
1983
|
-
def startTagCol(self, token):
|
|
1984
|
-
self.tree.insertElement(token)
|
|
1985
|
-
self.tree.openElements.pop()
|
|
1986
|
-
token["selfClosingAcknowledged"] = True
|
|
1987
|
-
|
|
1988
|
-
def startTagOther(self, token):
|
|
1989
|
-
ignoreEndTag = self.ignoreEndTagColgroup()
|
|
1990
|
-
self.endTagColgroup(impliedTagToken("colgroup"))
|
|
1991
|
-
if not ignoreEndTag:
|
|
1992
|
-
return token
|
|
1993
|
-
|
|
1994
|
-
def endTagColgroup(self, token):
|
|
1995
|
-
if self.ignoreEndTagColgroup():
|
|
1996
|
-
# innerHTML case
|
|
1997
|
-
assert self.parser.innerHTML
|
|
1998
|
-
self.parser.parseError()
|
|
1999
|
-
else:
|
|
2000
|
-
self.tree.openElements.pop()
|
|
2001
|
-
self.parser.phase = self.parser.phases["inTable"]
|
|
2002
|
-
|
|
2003
|
-
def endTagCol(self, token):
|
|
2004
|
-
self.parser.parseError("no-end-tag", {"name": "col"})
|
|
2005
|
-
|
|
2006
|
-
def endTagOther(self, token):
|
|
2007
|
-
ignoreEndTag = self.ignoreEndTagColgroup()
|
|
2008
|
-
self.endTagColgroup(impliedTagToken("colgroup"))
|
|
2009
|
-
if not ignoreEndTag:
|
|
2010
|
-
return token
|
|
2011
|
-
|
|
2012
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
2013
|
-
("html", Phase.startTagHtml),
|
|
2014
|
-
("col", startTagCol)
|
|
2015
|
-
])
|
|
2016
|
-
startTagHandler.default = startTagOther
|
|
2017
|
-
|
|
2018
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
2019
|
-
("colgroup", endTagColgroup),
|
|
2020
|
-
("col", endTagCol)
|
|
2021
|
-
])
|
|
2022
|
-
endTagHandler.default = endTagOther
|
|
2023
|
-
|
|
2024
|
-
class InTableBodyPhase(Phase):
|
|
2025
|
-
# http://www.whatwg.org/specs/web-apps/current-work/#in-table0
|
|
2026
|
-
__slots__ = tuple()
|
|
2027
|
-
|
|
2028
|
-
# helper methods
|
|
2029
|
-
def clearStackToTableBodyContext(self):
|
|
2030
|
-
while self.tree.openElements[-1].name not in ("tbody", "tfoot",
|
|
2031
|
-
"thead", "html"):
|
|
2032
|
-
# self.parser.parseError("unexpected-implied-end-tag-in-table",
|
|
2033
|
-
# {"name": self.tree.openElements[-1].name})
|
|
2034
|
-
self.tree.openElements.pop()
|
|
2035
|
-
if self.tree.openElements[-1].name == "html":
|
|
2036
|
-
assert self.parser.innerHTML
|
|
2037
|
-
|
|
2038
|
-
# the rest
|
|
2039
|
-
def processEOF(self):
|
|
2040
|
-
self.parser.phases["inTable"].processEOF()
|
|
2041
|
-
|
|
2042
|
-
def processSpaceCharacters(self, token):
|
|
2043
|
-
return self.parser.phases["inTable"].processSpaceCharacters(token)
|
|
2044
|
-
|
|
2045
|
-
def processCharacters(self, token):
|
|
2046
|
-
return self.parser.phases["inTable"].processCharacters(token)
|
|
2047
|
-
|
|
2048
|
-
def startTagTr(self, token):
|
|
2049
|
-
self.clearStackToTableBodyContext()
|
|
2050
|
-
self.tree.insertElement(token)
|
|
2051
|
-
self.parser.phase = self.parser.phases["inRow"]
|
|
2052
|
-
|
|
2053
|
-
def startTagTableCell(self, token):
|
|
2054
|
-
self.parser.parseError("unexpected-cell-in-table-body",
|
|
2055
|
-
{"name": token["name"]})
|
|
2056
|
-
self.startTagTr(impliedTagToken("tr", "StartTag"))
|
|
2057
|
-
return token
|
|
2058
|
-
|
|
2059
|
-
def startTagTableOther(self, token):
|
|
2060
|
-
# XXX AT Any ideas on how to share this with endTagTable?
|
|
2061
|
-
if (self.tree.elementInScope("tbody", variant="table") or
|
|
2062
|
-
self.tree.elementInScope("thead", variant="table") or
|
|
2063
|
-
self.tree.elementInScope("tfoot", variant="table")):
|
|
2064
|
-
self.clearStackToTableBodyContext()
|
|
2065
|
-
self.endTagTableRowGroup(
|
|
2066
|
-
impliedTagToken(self.tree.openElements[-1].name))
|
|
2067
|
-
return token
|
|
2068
|
-
else:
|
|
2069
|
-
# innerHTML case
|
|
2070
|
-
assert self.parser.innerHTML
|
|
2071
|
-
self.parser.parseError()
|
|
2072
|
-
|
|
2073
|
-
def startTagOther(self, token):
|
|
2074
|
-
return self.parser.phases["inTable"].processStartTag(token)
|
|
2075
|
-
|
|
2076
|
-
def endTagTableRowGroup(self, token):
|
|
2077
|
-
if self.tree.elementInScope(token["name"], variant="table"):
|
|
2078
|
-
self.clearStackToTableBodyContext()
|
|
2079
|
-
self.tree.openElements.pop()
|
|
2080
|
-
self.parser.phase = self.parser.phases["inTable"]
|
|
2081
|
-
else:
|
|
2082
|
-
self.parser.parseError("unexpected-end-tag-in-table-body",
|
|
2083
|
-
{"name": token["name"]})
|
|
2084
|
-
|
|
2085
|
-
def endTagTable(self, token):
|
|
2086
|
-
if (self.tree.elementInScope("tbody", variant="table") or
|
|
2087
|
-
self.tree.elementInScope("thead", variant="table") or
|
|
2088
|
-
self.tree.elementInScope("tfoot", variant="table")):
|
|
2089
|
-
self.clearStackToTableBodyContext()
|
|
2090
|
-
self.endTagTableRowGroup(
|
|
2091
|
-
impliedTagToken(self.tree.openElements[-1].name))
|
|
2092
|
-
return token
|
|
2093
|
-
else:
|
|
2094
|
-
# innerHTML case
|
|
2095
|
-
assert self.parser.innerHTML
|
|
2096
|
-
self.parser.parseError()
|
|
2097
|
-
|
|
2098
|
-
def endTagIgnore(self, token):
|
|
2099
|
-
self.parser.parseError("unexpected-end-tag-in-table-body",
|
|
2100
|
-
{"name": token["name"]})
|
|
2101
|
-
|
|
2102
|
-
def endTagOther(self, token):
|
|
2103
|
-
return self.parser.phases["inTable"].processEndTag(token)
|
|
2104
|
-
|
|
2105
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
2106
|
-
("html", Phase.startTagHtml),
|
|
2107
|
-
("tr", startTagTr),
|
|
2108
|
-
(("td", "th"), startTagTableCell),
|
|
2109
|
-
(("caption", "col", "colgroup", "tbody", "tfoot", "thead"),
|
|
2110
|
-
startTagTableOther)
|
|
2111
|
-
])
|
|
2112
|
-
startTagHandler.default = startTagOther
|
|
2113
|
-
|
|
2114
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
2115
|
-
(("tbody", "tfoot", "thead"), endTagTableRowGroup),
|
|
2116
|
-
("table", endTagTable),
|
|
2117
|
-
(("body", "caption", "col", "colgroup", "html", "td", "th",
|
|
2118
|
-
"tr"), endTagIgnore)
|
|
2119
|
-
])
|
|
2120
|
-
endTagHandler.default = endTagOther
|
|
2121
|
-
|
|
2122
|
-
class InRowPhase(Phase):
|
|
2123
|
-
# http://www.whatwg.org/specs/web-apps/current-work/#in-row
|
|
2124
|
-
__slots__ = tuple()
|
|
2125
|
-
|
|
2126
|
-
# helper methods (XXX unify this with other table helper methods)
|
|
2127
|
-
def clearStackToTableRowContext(self):
|
|
2128
|
-
while self.tree.openElements[-1].name not in ("tr", "html"):
|
|
2129
|
-
self.parser.parseError("unexpected-implied-end-tag-in-table-row",
|
|
2130
|
-
{"name": self.tree.openElements[-1].name})
|
|
2131
|
-
self.tree.openElements.pop()
|
|
2132
|
-
|
|
2133
|
-
def ignoreEndTagTr(self):
|
|
2134
|
-
return not self.tree.elementInScope("tr", variant="table")
|
|
2135
|
-
|
|
2136
|
-
# the rest
|
|
2137
|
-
def processEOF(self):
|
|
2138
|
-
self.parser.phases["inTable"].processEOF()
|
|
2139
|
-
|
|
2140
|
-
def processSpaceCharacters(self, token):
|
|
2141
|
-
return self.parser.phases["inTable"].processSpaceCharacters(token)
|
|
2142
|
-
|
|
2143
|
-
def processCharacters(self, token):
|
|
2144
|
-
return self.parser.phases["inTable"].processCharacters(token)
|
|
2145
|
-
|
|
2146
|
-
def startTagTableCell(self, token):
|
|
2147
|
-
self.clearStackToTableRowContext()
|
|
2148
|
-
self.tree.insertElement(token)
|
|
2149
|
-
self.parser.phase = self.parser.phases["inCell"]
|
|
2150
|
-
self.tree.activeFormattingElements.append(Marker)
|
|
2151
|
-
|
|
2152
|
-
def startTagTableOther(self, token):
|
|
2153
|
-
ignoreEndTag = self.ignoreEndTagTr()
|
|
2154
|
-
self.endTagTr(impliedTagToken("tr"))
|
|
2155
|
-
# XXX how are we sure it's always ignored in the innerHTML case?
|
|
2156
|
-
if not ignoreEndTag:
|
|
2157
|
-
return token
|
|
2158
|
-
|
|
2159
|
-
def startTagOther(self, token):
|
|
2160
|
-
return self.parser.phases["inTable"].processStartTag(token)
|
|
2161
|
-
|
|
2162
|
-
def endTagTr(self, token):
|
|
2163
|
-
if not self.ignoreEndTagTr():
|
|
2164
|
-
self.clearStackToTableRowContext()
|
|
2165
|
-
self.tree.openElements.pop()
|
|
2166
|
-
self.parser.phase = self.parser.phases["inTableBody"]
|
|
2167
|
-
else:
|
|
2168
|
-
# innerHTML case
|
|
2169
|
-
assert self.parser.innerHTML
|
|
2170
|
-
self.parser.parseError()
|
|
2171
|
-
|
|
2172
|
-
def endTagTable(self, token):
|
|
2173
|
-
ignoreEndTag = self.ignoreEndTagTr()
|
|
2174
|
-
self.endTagTr(impliedTagToken("tr"))
|
|
2175
|
-
# Reprocess the current tag if the tr end tag was not ignored
|
|
2176
|
-
# XXX how are we sure it's always ignored in the innerHTML case?
|
|
2177
|
-
if not ignoreEndTag:
|
|
2178
|
-
return token
|
|
2179
|
-
|
|
2180
|
-
def endTagTableRowGroup(self, token):
|
|
2181
|
-
if self.tree.elementInScope(token["name"], variant="table"):
|
|
2182
|
-
self.endTagTr(impliedTagToken("tr"))
|
|
2183
|
-
return token
|
|
2184
|
-
else:
|
|
2185
|
-
self.parser.parseError()
|
|
2186
|
-
|
|
2187
|
-
def endTagIgnore(self, token):
|
|
2188
|
-
self.parser.parseError("unexpected-end-tag-in-table-row",
|
|
2189
|
-
{"name": token["name"]})
|
|
2190
|
-
|
|
2191
|
-
def endTagOther(self, token):
|
|
2192
|
-
return self.parser.phases["inTable"].processEndTag(token)
|
|
2193
|
-
|
|
2194
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
2195
|
-
("html", Phase.startTagHtml),
|
|
2196
|
-
(("td", "th"), startTagTableCell),
|
|
2197
|
-
(("caption", "col", "colgroup", "tbody", "tfoot", "thead",
|
|
2198
|
-
"tr"), startTagTableOther)
|
|
2199
|
-
])
|
|
2200
|
-
startTagHandler.default = startTagOther
|
|
2201
|
-
|
|
2202
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
2203
|
-
("tr", endTagTr),
|
|
2204
|
-
("table", endTagTable),
|
|
2205
|
-
(("tbody", "tfoot", "thead"), endTagTableRowGroup),
|
|
2206
|
-
(("body", "caption", "col", "colgroup", "html", "td", "th"),
|
|
2207
|
-
endTagIgnore)
|
|
2208
|
-
])
|
|
2209
|
-
endTagHandler.default = endTagOther
|
|
2210
|
-
|
|
2211
|
-
class InCellPhase(Phase):
|
|
2212
|
-
# http://www.whatwg.org/specs/web-apps/current-work/#in-cell
|
|
2213
|
-
__slots__ = tuple()
|
|
2214
|
-
|
|
2215
|
-
# helper
|
|
2216
|
-
def closeCell(self):
|
|
2217
|
-
if self.tree.elementInScope("td", variant="table"):
|
|
2218
|
-
self.endTagTableCell(impliedTagToken("td"))
|
|
2219
|
-
elif self.tree.elementInScope("th", variant="table"):
|
|
2220
|
-
self.endTagTableCell(impliedTagToken("th"))
|
|
2221
|
-
|
|
2222
|
-
# the rest
|
|
2223
|
-
def processEOF(self):
|
|
2224
|
-
self.parser.phases["inBody"].processEOF()
|
|
2225
|
-
|
|
2226
|
-
def processCharacters(self, token):
|
|
2227
|
-
return self.parser.phases["inBody"].processCharacters(token)
|
|
2228
|
-
|
|
2229
|
-
def startTagTableOther(self, token):
|
|
2230
|
-
if (self.tree.elementInScope("td", variant="table") or
|
|
2231
|
-
self.tree.elementInScope("th", variant="table")):
|
|
2232
|
-
self.closeCell()
|
|
2233
|
-
return token
|
|
2234
|
-
else:
|
|
2235
|
-
# innerHTML case
|
|
2236
|
-
assert self.parser.innerHTML
|
|
2237
|
-
self.parser.parseError()
|
|
2238
|
-
|
|
2239
|
-
def startTagOther(self, token):
|
|
2240
|
-
return self.parser.phases["inBody"].processStartTag(token)
|
|
2241
|
-
|
|
2242
|
-
def endTagTableCell(self, token):
|
|
2243
|
-
if self.tree.elementInScope(token["name"], variant="table"):
|
|
2244
|
-
self.tree.generateImpliedEndTags(token["name"])
|
|
2245
|
-
if self.tree.openElements[-1].name != token["name"]:
|
|
2246
|
-
self.parser.parseError("unexpected-cell-end-tag",
|
|
2247
|
-
{"name": token["name"]})
|
|
2248
|
-
while True:
|
|
2249
|
-
node = self.tree.openElements.pop()
|
|
2250
|
-
if node.name == token["name"]:
|
|
2251
|
-
break
|
|
2252
|
-
else:
|
|
2253
|
-
self.tree.openElements.pop()
|
|
2254
|
-
self.tree.clearActiveFormattingElements()
|
|
2255
|
-
self.parser.phase = self.parser.phases["inRow"]
|
|
2256
|
-
else:
|
|
2257
|
-
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
|
|
2258
|
-
|
|
2259
|
-
def endTagIgnore(self, token):
|
|
2260
|
-
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
|
|
2261
|
-
|
|
2262
|
-
def endTagImply(self, token):
|
|
2263
|
-
if self.tree.elementInScope(token["name"], variant="table"):
|
|
2264
|
-
self.closeCell()
|
|
2265
|
-
return token
|
|
2266
|
-
else:
|
|
2267
|
-
# sometimes innerHTML case
|
|
2268
|
-
self.parser.parseError()
|
|
2269
|
-
|
|
2270
|
-
def endTagOther(self, token):
|
|
2271
|
-
return self.parser.phases["inBody"].processEndTag(token)
|
|
2272
|
-
|
|
2273
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
2274
|
-
("html", Phase.startTagHtml),
|
|
2275
|
-
(("caption", "col", "colgroup", "tbody", "td", "tfoot", "th",
|
|
2276
|
-
"thead", "tr"), startTagTableOther)
|
|
2277
|
-
])
|
|
2278
|
-
startTagHandler.default = startTagOther
|
|
2279
|
-
|
|
2280
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
2281
|
-
(("td", "th"), endTagTableCell),
|
|
2282
|
-
(("body", "caption", "col", "colgroup", "html"), endTagIgnore),
|
|
2283
|
-
(("table", "tbody", "tfoot", "thead", "tr"), endTagImply)
|
|
2284
|
-
])
|
|
2285
|
-
endTagHandler.default = endTagOther
|
|
2286
|
-
|
|
2287
|
-
class InSelectPhase(Phase):
|
|
2288
|
-
__slots__ = tuple()
|
|
2289
|
-
|
|
2290
|
-
# http://www.whatwg.org/specs/web-apps/current-work/#in-select
|
|
2291
|
-
def processEOF(self):
|
|
2292
|
-
if self.tree.openElements[-1].name != "html":
|
|
2293
|
-
self.parser.parseError("eof-in-select")
|
|
2294
|
-
else:
|
|
2295
|
-
assert self.parser.innerHTML
|
|
2296
|
-
|
|
2297
|
-
def processCharacters(self, token):
|
|
2298
|
-
if token["data"] == "\u0000":
|
|
2299
|
-
return
|
|
2300
|
-
self.tree.insertText(token["data"])
|
|
2301
|
-
|
|
2302
|
-
def startTagOption(self, token):
|
|
2303
|
-
# We need to imply </option> if <option> is the current node.
|
|
2304
|
-
if self.tree.openElements[-1].name == "option":
|
|
2305
|
-
self.tree.openElements.pop()
|
|
2306
|
-
self.tree.insertElement(token)
|
|
2307
|
-
|
|
2308
|
-
def startTagOptgroup(self, token):
|
|
2309
|
-
if self.tree.openElements[-1].name == "option":
|
|
2310
|
-
self.tree.openElements.pop()
|
|
2311
|
-
if self.tree.openElements[-1].name == "optgroup":
|
|
2312
|
-
self.tree.openElements.pop()
|
|
2313
|
-
self.tree.insertElement(token)
|
|
2314
|
-
|
|
2315
|
-
def startTagSelect(self, token):
|
|
2316
|
-
self.parser.parseError("unexpected-select-in-select")
|
|
2317
|
-
self.endTagSelect(impliedTagToken("select"))
|
|
2318
|
-
|
|
2319
|
-
def startTagInput(self, token):
|
|
2320
|
-
self.parser.parseError("unexpected-input-in-select")
|
|
2321
|
-
if self.tree.elementInScope("select", variant="select"):
|
|
2322
|
-
self.endTagSelect(impliedTagToken("select"))
|
|
2323
|
-
return token
|
|
2324
|
-
else:
|
|
2325
|
-
assert self.parser.innerHTML
|
|
2326
|
-
|
|
2327
|
-
def startTagScript(self, token):
|
|
2328
|
-
return self.parser.phases["inHead"].processStartTag(token)
|
|
2329
|
-
|
|
2330
|
-
def startTagOther(self, token):
|
|
2331
|
-
self.parser.parseError("unexpected-start-tag-in-select",
|
|
2332
|
-
{"name": token["name"]})
|
|
2333
|
-
|
|
2334
|
-
def endTagOption(self, token):
|
|
2335
|
-
if self.tree.openElements[-1].name == "option":
|
|
2336
|
-
self.tree.openElements.pop()
|
|
2337
|
-
else:
|
|
2338
|
-
self.parser.parseError("unexpected-end-tag-in-select",
|
|
2339
|
-
{"name": "option"})
|
|
2340
|
-
|
|
2341
|
-
def endTagOptgroup(self, token):
|
|
2342
|
-
# </optgroup> implicitly closes <option>
|
|
2343
|
-
if (self.tree.openElements[-1].name == "option" and
|
|
2344
|
-
self.tree.openElements[-2].name == "optgroup"):
|
|
2345
|
-
self.tree.openElements.pop()
|
|
2346
|
-
# It also closes </optgroup>
|
|
2347
|
-
if self.tree.openElements[-1].name == "optgroup":
|
|
2348
|
-
self.tree.openElements.pop()
|
|
2349
|
-
# But nothing else
|
|
2350
|
-
else:
|
|
2351
|
-
self.parser.parseError("unexpected-end-tag-in-select",
|
|
2352
|
-
{"name": "optgroup"})
|
|
2353
|
-
|
|
2354
|
-
def endTagSelect(self, token):
|
|
2355
|
-
if self.tree.elementInScope("select", variant="select"):
|
|
2356
|
-
node = self.tree.openElements.pop()
|
|
2357
|
-
while node.name != "select":
|
|
2358
|
-
node = self.tree.openElements.pop()
|
|
2359
|
-
self.parser.resetInsertionMode()
|
|
2360
|
-
else:
|
|
2361
|
-
# innerHTML case
|
|
2362
|
-
assert self.parser.innerHTML
|
|
2363
|
-
self.parser.parseError()
|
|
2364
|
-
|
|
2365
|
-
def endTagOther(self, token):
|
|
2366
|
-
self.parser.parseError("unexpected-end-tag-in-select",
|
|
2367
|
-
{"name": token["name"]})
|
|
2368
|
-
|
|
2369
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
2370
|
-
("html", Phase.startTagHtml),
|
|
2371
|
-
("option", startTagOption),
|
|
2372
|
-
("optgroup", startTagOptgroup),
|
|
2373
|
-
("select", startTagSelect),
|
|
2374
|
-
(("input", "keygen", "textarea"), startTagInput),
|
|
2375
|
-
("script", startTagScript)
|
|
2376
|
-
])
|
|
2377
|
-
startTagHandler.default = startTagOther
|
|
2378
|
-
|
|
2379
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
2380
|
-
("option", endTagOption),
|
|
2381
|
-
("optgroup", endTagOptgroup),
|
|
2382
|
-
("select", endTagSelect)
|
|
2383
|
-
])
|
|
2384
|
-
endTagHandler.default = endTagOther
|
|
2385
|
-
|
|
2386
|
-
class InSelectInTablePhase(Phase):
|
|
2387
|
-
__slots__ = tuple()
|
|
2388
|
-
|
|
2389
|
-
def processEOF(self):
|
|
2390
|
-
self.parser.phases["inSelect"].processEOF()
|
|
2391
|
-
|
|
2392
|
-
def processCharacters(self, token):
|
|
2393
|
-
return self.parser.phases["inSelect"].processCharacters(token)
|
|
2394
|
-
|
|
2395
|
-
def startTagTable(self, token):
|
|
2396
|
-
self.parser.parseError("unexpected-table-element-start-tag-in-select-in-table", {"name": token["name"]})
|
|
2397
|
-
self.endTagOther(impliedTagToken("select"))
|
|
2398
|
-
return token
|
|
2399
|
-
|
|
2400
|
-
def startTagOther(self, token):
|
|
2401
|
-
return self.parser.phases["inSelect"].processStartTag(token)
|
|
2402
|
-
|
|
2403
|
-
def endTagTable(self, token):
|
|
2404
|
-
self.parser.parseError("unexpected-table-element-end-tag-in-select-in-table", {"name": token["name"]})
|
|
2405
|
-
if self.tree.elementInScope(token["name"], variant="table"):
|
|
2406
|
-
self.endTagOther(impliedTagToken("select"))
|
|
2407
|
-
return token
|
|
2408
|
-
|
|
2409
|
-
def endTagOther(self, token):
|
|
2410
|
-
return self.parser.phases["inSelect"].processEndTag(token)
|
|
2411
|
-
|
|
2412
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
2413
|
-
(("caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th"),
|
|
2414
|
-
startTagTable)
|
|
2415
|
-
])
|
|
2416
|
-
startTagHandler.default = startTagOther
|
|
2417
|
-
|
|
2418
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
2419
|
-
(("caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th"),
|
|
2420
|
-
endTagTable)
|
|
2421
|
-
])
|
|
2422
|
-
endTagHandler.default = endTagOther
|
|
2423
|
-
|
|
2424
|
-
class InForeignContentPhase(Phase):
|
|
2425
|
-
__slots__ = tuple()
|
|
2426
|
-
|
|
2427
|
-
breakoutElements = frozenset(["b", "big", "blockquote", "body", "br",
|
|
2428
|
-
"center", "code", "dd", "div", "dl", "dt",
|
|
2429
|
-
"em", "embed", "h1", "h2", "h3",
|
|
2430
|
-
"h4", "h5", "h6", "head", "hr", "i", "img",
|
|
2431
|
-
"li", "listing", "menu", "meta", "nobr",
|
|
2432
|
-
"ol", "p", "pre", "ruby", "s", "small",
|
|
2433
|
-
"span", "strong", "strike", "sub", "sup",
|
|
2434
|
-
"table", "tt", "u", "ul", "var"])
|
|
2435
|
-
|
|
2436
|
-
def adjustSVGTagNames(self, token):
|
|
2437
|
-
replacements = {"altglyph": "altGlyph",
|
|
2438
|
-
"altglyphdef": "altGlyphDef",
|
|
2439
|
-
"altglyphitem": "altGlyphItem",
|
|
2440
|
-
"animatecolor": "animateColor",
|
|
2441
|
-
"animatemotion": "animateMotion",
|
|
2442
|
-
"animatetransform": "animateTransform",
|
|
2443
|
-
"clippath": "clipPath",
|
|
2444
|
-
"feblend": "feBlend",
|
|
2445
|
-
"fecolormatrix": "feColorMatrix",
|
|
2446
|
-
"fecomponenttransfer": "feComponentTransfer",
|
|
2447
|
-
"fecomposite": "feComposite",
|
|
2448
|
-
"feconvolvematrix": "feConvolveMatrix",
|
|
2449
|
-
"fediffuselighting": "feDiffuseLighting",
|
|
2450
|
-
"fedisplacementmap": "feDisplacementMap",
|
|
2451
|
-
"fedistantlight": "feDistantLight",
|
|
2452
|
-
"feflood": "feFlood",
|
|
2453
|
-
"fefunca": "feFuncA",
|
|
2454
|
-
"fefuncb": "feFuncB",
|
|
2455
|
-
"fefuncg": "feFuncG",
|
|
2456
|
-
"fefuncr": "feFuncR",
|
|
2457
|
-
"fegaussianblur": "feGaussianBlur",
|
|
2458
|
-
"feimage": "feImage",
|
|
2459
|
-
"femerge": "feMerge",
|
|
2460
|
-
"femergenode": "feMergeNode",
|
|
2461
|
-
"femorphology": "feMorphology",
|
|
2462
|
-
"feoffset": "feOffset",
|
|
2463
|
-
"fepointlight": "fePointLight",
|
|
2464
|
-
"fespecularlighting": "feSpecularLighting",
|
|
2465
|
-
"fespotlight": "feSpotLight",
|
|
2466
|
-
"fetile": "feTile",
|
|
2467
|
-
"feturbulence": "feTurbulence",
|
|
2468
|
-
"foreignobject": "foreignObject",
|
|
2469
|
-
"glyphref": "glyphRef",
|
|
2470
|
-
"lineargradient": "linearGradient",
|
|
2471
|
-
"radialgradient": "radialGradient",
|
|
2472
|
-
"textpath": "textPath"}
|
|
2473
|
-
|
|
2474
|
-
if token["name"] in replacements:
|
|
2475
|
-
token["name"] = replacements[token["name"]]
|
|
2476
|
-
|
|
2477
|
-
def processCharacters(self, token):
|
|
2478
|
-
if token["data"] == "\u0000":
|
|
2479
|
-
token["data"] = "\uFFFD"
|
|
2480
|
-
elif (self.parser.framesetOK and
|
|
2481
|
-
any(char not in spaceCharacters for char in token["data"])):
|
|
2482
|
-
self.parser.framesetOK = False
|
|
2483
|
-
Phase.processCharacters(self, token)
|
|
2484
|
-
|
|
2485
|
-
def processStartTag(self, token):
|
|
2486
|
-
currentNode = self.tree.openElements[-1]
|
|
2487
|
-
if (token["name"] in self.breakoutElements or
|
|
2488
|
-
(token["name"] == "font" and
|
|
2489
|
-
set(token["data"].keys()) & {"color", "face", "size"})):
|
|
2490
|
-
self.parser.parseError("unexpected-html-element-in-foreign-content",
|
|
2491
|
-
{"name": token["name"]})
|
|
2492
|
-
while (self.tree.openElements[-1].namespace !=
|
|
2493
|
-
self.tree.defaultNamespace and
|
|
2494
|
-
not self.parser.isHTMLIntegrationPoint(self.tree.openElements[-1]) and
|
|
2495
|
-
not self.parser.isMathMLTextIntegrationPoint(self.tree.openElements[-1])):
|
|
2496
|
-
self.tree.openElements.pop()
|
|
2497
|
-
return token
|
|
2498
|
-
|
|
2499
|
-
else:
|
|
2500
|
-
if currentNode.namespace == namespaces["mathml"]:
|
|
2501
|
-
self.parser.adjustMathMLAttributes(token)
|
|
2502
|
-
elif currentNode.namespace == namespaces["svg"]:
|
|
2503
|
-
self.adjustSVGTagNames(token)
|
|
2504
|
-
self.parser.adjustSVGAttributes(token)
|
|
2505
|
-
self.parser.adjustForeignAttributes(token)
|
|
2506
|
-
token["namespace"] = currentNode.namespace
|
|
2507
|
-
self.tree.insertElement(token)
|
|
2508
|
-
if token["selfClosing"]:
|
|
2509
|
-
self.tree.openElements.pop()
|
|
2510
|
-
token["selfClosingAcknowledged"] = True
|
|
2511
|
-
|
|
2512
|
-
def processEndTag(self, token):
|
|
2513
|
-
nodeIndex = len(self.tree.openElements) - 1
|
|
2514
|
-
node = self.tree.openElements[-1]
|
|
2515
|
-
if node.name.translate(asciiUpper2Lower) != token["name"]:
|
|
2516
|
-
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
|
|
2517
|
-
|
|
2518
|
-
while True:
|
|
2519
|
-
if node.name.translate(asciiUpper2Lower) == token["name"]:
|
|
2520
|
-
# XXX this isn't in the spec but it seems necessary
|
|
2521
|
-
if self.parser.phase == self.parser.phases["inTableText"]:
|
|
2522
|
-
self.parser.phase.flushCharacters()
|
|
2523
|
-
self.parser.phase = self.parser.phase.originalPhase
|
|
2524
|
-
while self.tree.openElements.pop() != node:
|
|
2525
|
-
assert self.tree.openElements
|
|
2526
|
-
new_token = None
|
|
2527
|
-
break
|
|
2528
|
-
nodeIndex -= 1
|
|
2529
|
-
|
|
2530
|
-
node = self.tree.openElements[nodeIndex]
|
|
2531
|
-
if node.namespace != self.tree.defaultNamespace:
|
|
2532
|
-
continue
|
|
2533
|
-
else:
|
|
2534
|
-
new_token = self.parser.phase.processEndTag(token)
|
|
2535
|
-
break
|
|
2536
|
-
return new_token
|
|
2537
|
-
|
|
2538
|
-
class AfterBodyPhase(Phase):
|
|
2539
|
-
__slots__ = tuple()
|
|
2540
|
-
|
|
2541
|
-
def processEOF(self):
|
|
2542
|
-
# Stop parsing
|
|
2543
|
-
pass
|
|
2544
|
-
|
|
2545
|
-
def processComment(self, token):
|
|
2546
|
-
# This is needed because data is to be appended to the <html> element
|
|
2547
|
-
# here and not to whatever is currently open.
|
|
2548
|
-
self.tree.insertComment(token, self.tree.openElements[0])
|
|
2549
|
-
|
|
2550
|
-
def processCharacters(self, token):
|
|
2551
|
-
self.parser.parseError("unexpected-char-after-body")
|
|
2552
|
-
self.parser.phase = self.parser.phases["inBody"]
|
|
2553
|
-
return token
|
|
2554
|
-
|
|
2555
|
-
def startTagHtml(self, token):
|
|
2556
|
-
return self.parser.phases["inBody"].processStartTag(token)
|
|
2557
|
-
|
|
2558
|
-
def startTagOther(self, token):
|
|
2559
|
-
self.parser.parseError("unexpected-start-tag-after-body",
|
|
2560
|
-
{"name": token["name"]})
|
|
2561
|
-
self.parser.phase = self.parser.phases["inBody"]
|
|
2562
|
-
return token
|
|
2563
|
-
|
|
2564
|
-
def endTagHtml(self, name):
|
|
2565
|
-
if self.parser.innerHTML:
|
|
2566
|
-
self.parser.parseError("unexpected-end-tag-after-body-innerhtml")
|
|
2567
|
-
else:
|
|
2568
|
-
self.parser.phase = self.parser.phases["afterAfterBody"]
|
|
2569
|
-
|
|
2570
|
-
def endTagOther(self, token):
|
|
2571
|
-
self.parser.parseError("unexpected-end-tag-after-body",
|
|
2572
|
-
{"name": token["name"]})
|
|
2573
|
-
self.parser.phase = self.parser.phases["inBody"]
|
|
2574
|
-
return token
|
|
2575
|
-
|
|
2576
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
2577
|
-
("html", startTagHtml)
|
|
2578
|
-
])
|
|
2579
|
-
startTagHandler.default = startTagOther
|
|
2580
|
-
|
|
2581
|
-
endTagHandler = _utils.MethodDispatcher([("html", endTagHtml)])
|
|
2582
|
-
endTagHandler.default = endTagOther
|
|
2583
|
-
|
|
2584
|
-
class InFramesetPhase(Phase):
|
|
2585
|
-
# http://www.whatwg.org/specs/web-apps/current-work/#in-frameset
|
|
2586
|
-
__slots__ = tuple()
|
|
2587
|
-
|
|
2588
|
-
def processEOF(self):
|
|
2589
|
-
if self.tree.openElements[-1].name != "html":
|
|
2590
|
-
self.parser.parseError("eof-in-frameset")
|
|
2591
|
-
else:
|
|
2592
|
-
assert self.parser.innerHTML
|
|
2593
|
-
|
|
2594
|
-
def processCharacters(self, token):
|
|
2595
|
-
self.parser.parseError("unexpected-char-in-frameset")
|
|
2596
|
-
|
|
2597
|
-
def startTagFrameset(self, token):
|
|
2598
|
-
self.tree.insertElement(token)
|
|
2599
|
-
|
|
2600
|
-
def startTagFrame(self, token):
|
|
2601
|
-
self.tree.insertElement(token)
|
|
2602
|
-
self.tree.openElements.pop()
|
|
2603
|
-
|
|
2604
|
-
def startTagNoframes(self, token):
|
|
2605
|
-
return self.parser.phases["inBody"].processStartTag(token)
|
|
2606
|
-
|
|
2607
|
-
def startTagOther(self, token):
|
|
2608
|
-
self.parser.parseError("unexpected-start-tag-in-frameset",
|
|
2609
|
-
{"name": token["name"]})
|
|
2610
|
-
|
|
2611
|
-
def endTagFrameset(self, token):
|
|
2612
|
-
if self.tree.openElements[-1].name == "html":
|
|
2613
|
-
# innerHTML case
|
|
2614
|
-
self.parser.parseError("unexpected-frameset-in-frameset-innerhtml")
|
|
2615
|
-
else:
|
|
2616
|
-
self.tree.openElements.pop()
|
|
2617
|
-
if (not self.parser.innerHTML and
|
|
2618
|
-
self.tree.openElements[-1].name != "frameset"):
|
|
2619
|
-
# If we're not in innerHTML mode and the current node is not a
|
|
2620
|
-
# "frameset" element (anymore) then switch.
|
|
2621
|
-
self.parser.phase = self.parser.phases["afterFrameset"]
|
|
2622
|
-
|
|
2623
|
-
def endTagOther(self, token):
|
|
2624
|
-
self.parser.parseError("unexpected-end-tag-in-frameset",
|
|
2625
|
-
{"name": token["name"]})
|
|
2626
|
-
|
|
2627
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
2628
|
-
("html", Phase.startTagHtml),
|
|
2629
|
-
("frameset", startTagFrameset),
|
|
2630
|
-
("frame", startTagFrame),
|
|
2631
|
-
("noframes", startTagNoframes)
|
|
2632
|
-
])
|
|
2633
|
-
startTagHandler.default = startTagOther
|
|
2634
|
-
|
|
2635
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
2636
|
-
("frameset", endTagFrameset)
|
|
2637
|
-
])
|
|
2638
|
-
endTagHandler.default = endTagOther
|
|
2639
|
-
|
|
2640
|
-
class AfterFramesetPhase(Phase):
|
|
2641
|
-
# http://www.whatwg.org/specs/web-apps/current-work/#after3
|
|
2642
|
-
__slots__ = tuple()
|
|
2643
|
-
|
|
2644
|
-
def processEOF(self):
|
|
2645
|
-
# Stop parsing
|
|
2646
|
-
pass
|
|
2647
|
-
|
|
2648
|
-
def processCharacters(self, token):
|
|
2649
|
-
self.parser.parseError("unexpected-char-after-frameset")
|
|
2650
|
-
|
|
2651
|
-
def startTagNoframes(self, token):
|
|
2652
|
-
return self.parser.phases["inHead"].processStartTag(token)
|
|
2653
|
-
|
|
2654
|
-
def startTagOther(self, token):
|
|
2655
|
-
self.parser.parseError("unexpected-start-tag-after-frameset",
|
|
2656
|
-
{"name": token["name"]})
|
|
2657
|
-
|
|
2658
|
-
def endTagHtml(self, token):
|
|
2659
|
-
self.parser.phase = self.parser.phases["afterAfterFrameset"]
|
|
2660
|
-
|
|
2661
|
-
def endTagOther(self, token):
|
|
2662
|
-
self.parser.parseError("unexpected-end-tag-after-frameset",
|
|
2663
|
-
{"name": token["name"]})
|
|
2664
|
-
|
|
2665
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
2666
|
-
("html", Phase.startTagHtml),
|
|
2667
|
-
("noframes", startTagNoframes)
|
|
2668
|
-
])
|
|
2669
|
-
startTagHandler.default = startTagOther
|
|
2670
|
-
|
|
2671
|
-
endTagHandler = _utils.MethodDispatcher([
|
|
2672
|
-
("html", endTagHtml)
|
|
2673
|
-
])
|
|
2674
|
-
endTagHandler.default = endTagOther
|
|
2675
|
-
|
|
2676
|
-
class AfterAfterBodyPhase(Phase):
|
|
2677
|
-
__slots__ = tuple()
|
|
2678
|
-
|
|
2679
|
-
def processEOF(self):
|
|
2680
|
-
pass
|
|
2681
|
-
|
|
2682
|
-
def processComment(self, token):
|
|
2683
|
-
self.tree.insertComment(token, self.tree.document)
|
|
2684
|
-
|
|
2685
|
-
def processSpaceCharacters(self, token):
|
|
2686
|
-
return self.parser.phases["inBody"].processSpaceCharacters(token)
|
|
2687
|
-
|
|
2688
|
-
def processCharacters(self, token):
|
|
2689
|
-
self.parser.parseError("expected-eof-but-got-char")
|
|
2690
|
-
self.parser.phase = self.parser.phases["inBody"]
|
|
2691
|
-
return token
|
|
2692
|
-
|
|
2693
|
-
def startTagHtml(self, token):
|
|
2694
|
-
return self.parser.phases["inBody"].processStartTag(token)
|
|
2695
|
-
|
|
2696
|
-
def startTagOther(self, token):
|
|
2697
|
-
self.parser.parseError("expected-eof-but-got-start-tag",
|
|
2698
|
-
{"name": token["name"]})
|
|
2699
|
-
self.parser.phase = self.parser.phases["inBody"]
|
|
2700
|
-
return token
|
|
2701
|
-
|
|
2702
|
-
def processEndTag(self, token):
|
|
2703
|
-
self.parser.parseError("expected-eof-but-got-end-tag",
|
|
2704
|
-
{"name": token["name"]})
|
|
2705
|
-
self.parser.phase = self.parser.phases["inBody"]
|
|
2706
|
-
return token
|
|
2707
|
-
|
|
2708
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
2709
|
-
("html", startTagHtml)
|
|
2710
|
-
])
|
|
2711
|
-
startTagHandler.default = startTagOther
|
|
2712
|
-
|
|
2713
|
-
class AfterAfterFramesetPhase(Phase):
|
|
2714
|
-
__slots__ = tuple()
|
|
2715
|
-
|
|
2716
|
-
def processEOF(self):
|
|
2717
|
-
pass
|
|
2718
|
-
|
|
2719
|
-
def processComment(self, token):
|
|
2720
|
-
self.tree.insertComment(token, self.tree.document)
|
|
2721
|
-
|
|
2722
|
-
def processSpaceCharacters(self, token):
|
|
2723
|
-
return self.parser.phases["inBody"].processSpaceCharacters(token)
|
|
2724
|
-
|
|
2725
|
-
def processCharacters(self, token):
|
|
2726
|
-
self.parser.parseError("expected-eof-but-got-char")
|
|
2727
|
-
|
|
2728
|
-
def startTagHtml(self, token):
|
|
2729
|
-
return self.parser.phases["inBody"].processStartTag(token)
|
|
2730
|
-
|
|
2731
|
-
def startTagNoFrames(self, token):
|
|
2732
|
-
return self.parser.phases["inHead"].processStartTag(token)
|
|
2733
|
-
|
|
2734
|
-
def startTagOther(self, token):
|
|
2735
|
-
self.parser.parseError("expected-eof-but-got-start-tag",
|
|
2736
|
-
{"name": token["name"]})
|
|
2737
|
-
|
|
2738
|
-
def processEndTag(self, token):
|
|
2739
|
-
self.parser.parseError("expected-eof-but-got-end-tag",
|
|
2740
|
-
{"name": token["name"]})
|
|
2741
|
-
|
|
2742
|
-
startTagHandler = _utils.MethodDispatcher([
|
|
2743
|
-
("html", startTagHtml),
|
|
2744
|
-
("noframes", startTagNoFrames)
|
|
2745
|
-
])
|
|
2746
|
-
startTagHandler.default = startTagOther
|
|
2747
|
-
|
|
2748
|
-
# pylint:enable=unused-argument
|
|
2749
|
-
|
|
2750
|
-
return {
|
|
2751
|
-
"initial": InitialPhase,
|
|
2752
|
-
"beforeHtml": BeforeHtmlPhase,
|
|
2753
|
-
"beforeHead": BeforeHeadPhase,
|
|
2754
|
-
"inHead": InHeadPhase,
|
|
2755
|
-
"inHeadNoscript": InHeadNoscriptPhase,
|
|
2756
|
-
"afterHead": AfterHeadPhase,
|
|
2757
|
-
"inBody": InBodyPhase,
|
|
2758
|
-
"text": TextPhase,
|
|
2759
|
-
"inTable": InTablePhase,
|
|
2760
|
-
"inTableText": InTableTextPhase,
|
|
2761
|
-
"inCaption": InCaptionPhase,
|
|
2762
|
-
"inColumnGroup": InColumnGroupPhase,
|
|
2763
|
-
"inTableBody": InTableBodyPhase,
|
|
2764
|
-
"inRow": InRowPhase,
|
|
2765
|
-
"inCell": InCellPhase,
|
|
2766
|
-
"inSelect": InSelectPhase,
|
|
2767
|
-
"inSelectInTable": InSelectInTablePhase,
|
|
2768
|
-
"inForeignContent": InForeignContentPhase,
|
|
2769
|
-
"afterBody": AfterBodyPhase,
|
|
2770
|
-
"inFrameset": InFramesetPhase,
|
|
2771
|
-
"afterFrameset": AfterFramesetPhase,
|
|
2772
|
-
"afterAfterBody": AfterAfterBodyPhase,
|
|
2773
|
-
"afterAfterFrameset": AfterAfterFramesetPhase,
|
|
2774
|
-
# XXX after after frameset
|
|
2775
|
-
}
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
def adjust_attributes(token, replacements):
|
|
2779
|
-
needs_adjustment = viewkeys(token['data']) & viewkeys(replacements)
|
|
2780
|
-
if needs_adjustment:
|
|
2781
|
-
token['data'] = type(token['data'])((replacements.get(k, k), v)
|
|
2782
|
-
for k, v in token['data'].items())
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
def impliedTagToken(name, type="EndTag", attributes=None,
|
|
2786
|
-
selfClosing=False):
|
|
2787
|
-
if attributes is None:
|
|
2788
|
-
attributes = {}
|
|
2789
|
-
return {"type": tokenTypes[type], "name": name, "data": attributes,
|
|
2790
|
-
"selfClosing": selfClosing}
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
class ParseError(Exception):
|
|
2794
|
-
"""Error in parsed document"""
|
|
2795
|
-
pass
|