Ver código fonte

Fix stderr printing

master
JustAnotherArchivist 2 anos atrás
pai
commit
dba6d1fb0e
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      zstdwarccat

+ 1
- 1
zstdwarccat Ver arquivo

@@ -21,7 +21,7 @@ def get_dict(fp):
# Decompress with unzstd # Decompress with unzstd
p = subprocess.Popen(['unzstd'], stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE) p = subprocess.Popen(['unzstd'], stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
out, err = p.communicate(d) out, err = p.communicate(d)
assert p.returncode == 0, f'unzstd exited non-zero: return code {p.returncode}, stderr: {p.stderr!r}'
assert p.returncode == 0, f'unzstd exited non-zero: return code {p.returncode}, stderr: {err!r}'
d = out d = out
#elif d.startswith(b'\x37\xA4\x30\xEC'): # Uncompressed dict, nothing to do #elif d.startswith(b'\x37\xA4\x30\xEC'): # Uncompressed dict, nothing to do
return d return d


Carregando…
Cancelar
Salvar