[utils] Update traverse_obj() from yt-dlp
authordirkf <fieldhouse@gmx.net>
Sun, 21 Apr 2024 22:42:08 +0000 (23:42 +0100)
committerdirkf <fieldhouse@gmx.net>
Thu, 30 May 2024 14:46:36 +0000 (15:46 +0100)
commit06da64ee51cd405b9392ba484cf7d3d31a88ee30
tree9e52705c22131dea945bf015447d080faef778ba
parenta08f2b7e4567cdc50c0614ee0a4ffdff49b8b6e6
[utils] Update traverse_obj() from yt-dlp
* remove `is_user_input` option per https://github.com/yt-dlp/yt-dlp/pull/8673
* support traversal of compat_xml_etree_ElementTree_Element per https://github.com/yt-dlp/yt-dlp/pull/8911
* allow un/branching using all and any per https://github.com/yt-dlp/yt-dlp/pull/9571
* support traversal of compat_cookies.Morsel and multiple types in `set()` keys per https://github.com/yt-dlp/yt-dlp/pull/9577
thx Grub4k for these
* also, move traversal tests to a separate class
* allow for unordered dicts in tests for Py<3.7
test/test_utils.py
youtube_dl/compat.py
youtube_dl/utils.py