1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-30 14:15:13 +00:00

[cleanup] Minor fixes (#4096)

Authored by: christoph-heinrich
This commit is contained in:
christoph-heinrich
2022-06-18 03:57:22 +02:00
committed by GitHub
parent 7e9a612585
commit e121e3cee7
4 changed files with 9 additions and 7 deletions

View File

@@ -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: