Files
youtube-dl/youtube_dl/compat.py
dirkf 5585d76da6 [compat] Add compat_dict
A dict that preserves insertion order and otherwise resembles the
dict builtin (if it isn't it) rather than `collections.OrderedDict`.

Also:
* compat_builtins_dict: the built-in definition in case `compat_dict`
  was imported as `dict`
* compat_dict_items: use instead of `dict.items` to get items from
  a `compat_dict` in insertion order, if you didn't define `dict` as
  `compat_dict`.
2025-11-21 01:52:11 +00:00

118 KiB