Ver código fonte

Add support for reading from stdin

master
JustAnotherArchivist 2 anos atrás
pai
commit
fe0b020352
1 arquivos alterados com 2 adições e 0 exclusões
  1. +2
    -0
      warc-tiny

+ 2
- 0
warc-tiny Ver arquivo

@@ -528,6 +528,8 @@ def main():
for f in files:
print('Info: processing {}'.format(f), file = sys.stderr)
processor.process_event(NewFile(f))
if f == '-':
f = sys.stdin.buffer
for event in iter_warc(f):
processor.process_event(event)
except BrokenPipeError:


Carregando…
Cancelar
Salvar