[utils] Align traverse_obj() with yt-dlp
authordirkf <fieldhouse@gmx.net>
Wed, 3 May 2023 11:40:09 +0000 (12:40 +0100)
committerdirkf <fieldhouse@gmx.net>
Wed, 19 Jul 2023 21:14:50 +0000 (22:14 +0100)
commit825a40744bf9aeb743452db24e43d3eb61feb6c2
tree3cf1be097f4352ec0272c0d3c31043f06957ce4a
parent47214e46d852e9d7ddf81d69a8e70806e2396c6c
[utils] Align traverse_obj() with yt-dlp

Thanks Grub4k for these:
* traverse `Iterable`s, from https://github.com/yt-dlp/yt-dlp/pull/6902, etc
* traverse `set` key for transformations/filters, `re.Match` group names, from
  https://github.com/yt-dlp/yt-dlp/commit/776995bc109c5cd1aa56b684fada2ce718a386ec, etc
* traverse `re.Match`es, from https://github.com/yt-dlp/yt-dlp/pull/5174
* always return list when branching, from https://github.com/yt-dlp/yt-dlp/pull/5170
test/test_utils.py
youtube_dl/utils.py