From 54d80bdf8c1bce9e19bcdfe4f8eeb1f6a8b21241 Mon Sep 17 00:00:00 2001 From: Sam Arbid Date: Thu, 25 Apr 2024 16:12:20 +0200 Subject: [PATCH] licenses: fix some delimiters not been recognized. --- invenio_rdm_records/fixtures/vocabularies.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invenio_rdm_records/fixtures/vocabularies.py b/invenio_rdm_records/fixtures/vocabularies.py index 6746aa844..cf7467baa 100644 --- a/invenio_rdm_records/fixtures/vocabularies.py +++ b/invenio_rdm_records/fixtures/vocabularies.py @@ -3,6 +3,7 @@ # Copyright (C) 2021-2024 CERN. # Copyright (C) 2021-2022 Northwestern University. # Copyright (C) 2024 TU Wien. +# Copyright (C) 2024 KTH Royal Institute of Technology. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. @@ -71,7 +72,7 @@ def map_row(self, header, row): def __iter__(self): """Iterate over records.""" with open(self._data_file) as fp: - dialect = csv.Sniffer().sniff(fp.read(1024)) + dialect = csv.Sniffer().sniff(fp.read(4096)) fp.seek(0) reader = csv.reader(fp, dialect) header = next(reader)