1
0
Fork 0

[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
commit e121e3cee7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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: