Explorar el Código

Add support for reading from stdin

master
JustAnotherArchivist hace 2 años
padre
commit
fe0b020352
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      warc-tiny

+ 2
- 0
warc-tiny Ver fichero

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


Cargando…
Cancelar
Guardar