From 0ceda783e580fdc1bc3ae7a068b376ea603537fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Due=C3=B1as?= Date: Wed, 20 Nov 2024 18:32:58 +0100 Subject: [PATCH] [cmd] Fix invalid output file format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The output object was expecting bytes instead of a string. This commit sets the output to str only. Signed-off-by: Santiago DueƱas --- chronicler/chronicler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chronicler/chronicler.py b/chronicler/chronicler.py index 0946b4b..dd291a5 100644 --- a/chronicler/chronicler.py +++ b/chronicler/chronicler.py @@ -36,7 +36,7 @@ @click.option( "--output", help="File where events will be written", - type=click.File("wb"), + type=click.File("w"), default=sys.stdout ) @click.option( @@ -49,7 +49,7 @@ @click.argument('datasource') @click.version_option(__version__, message="%(prog)s %(version)s") def chronicler(datasource, input, output, json_line): - """Generates GrimoireLab events from the items obtained by Perceval. + """Generates GrimoireLab events from the items fetched by Perceval. The chronicler is a command line tool and a library that converts items generated by Perceval into events. The tool reads