1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-10 07:18:33 +00:00
This commit is contained in:
c-basalt 2024-08-11 23:22:24 -04:00
parent d65d40afd4
commit 92c8d39987

View File

@ -49,6 +49,7 @@ def cookie_jar_to_list(cookie_jar):
class TempFileWrapper: class TempFileWrapper:
"""Wrapper for NamedTemporaryFile, auto closes file after io and deletes file upon wrapper object gc""" """Wrapper for NamedTemporaryFile, auto closes file after io and deletes file upon wrapper object gc"""
def __init__(self, content=None, text=True, encoding='utf-8', suffix=None): def __init__(self, content=None, text=True, encoding='utf-8', suffix=None):
self.encoding = None if not text else encoding self.encoding = None if not text else encoding
self.text = text self.text = text