diff options
author | christoph-heinrich <christoph-heinrich@users.noreply.github.com> | 2022-06-18 03:57:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 18:57:22 -0700 |
commit | e121e3cee731426f620e17939141018d09661fa2 (patch) | |
tree | e50f5f24229fd6bc464a71937e3b87303062868c /yt_dlp/utils.py | |
parent | 7e9a61258543f64113e779f2f82fe7a29827489d (diff) | |
download | hypervideo-pre-e121e3cee731426f620e17939141018d09661fa2.tar.lz hypervideo-pre-e121e3cee731426f620e17939141018d09661fa2.tar.xz hypervideo-pre-e121e3cee731426f620e17939141018d09661fa2.zip |
[cleanup] Minor fixes (#4096)
Authored by: christoph-heinrich
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 8dda5e931..4a519e4e0 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -4954,7 +4954,7 @@ def write_xattr(path, key, value): try: _, stderr, returncode = Popen.run( [exe, '-w', key, value, path] if exe == 'xattr' else [exe, '-n', key, '-v', value, path], - stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) + text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) except OSError as e: raise XAttrMetadataError(e.errno, e.strerror) if returncode: |