Skip to content

Commit

Permalink
licenses: fix some delimiters not been recognized.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 authored and ntarocco committed May 2, 2024
1 parent 8cd6290 commit 54d80bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invenio_rdm_records/fixtures/vocabularies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 54d80bd

Please # to comment.