From 28787f16c6811cc4f2cc067d5739caf257b3ea75 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 25 Mar 2022 12:38:33 +0530 Subject: [downloader] Fix invocation of `HttpieFD` Closes #3154 --- yt_dlp/utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'yt_dlp/utils.py') diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index c71a7b833..4961ba14d 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -5502,3 +5502,11 @@ has_websockets = bool(compat_websockets) def merge_headers(*dicts): """Merge dicts of http headers case insensitively, prioritizing the latter ones""" return {k.title(): v for k, v in itertools.chain.from_iterable(map(dict.items, dicts))} + + +class classproperty: + def __init__(self, f): + self.f = f + + def __get__(self, _, cls): + return self.f(cls) -- cgit v1.2.3