Skip to content

Commit

Permalink
Update csv sniffer to read 8192 bytes instea of 4096
Browse files Browse the repository at this point in the history
  • Loading branch information
tim.reichard committed Feb 13, 2023
1 parent 8d28a39 commit f439d6b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
rev: 5.11.4
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/myint/docformatter
Expand Down
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ History
=======


v0.17.32 (2023-02-03)

* Update csv sniffer to read 8192 bytes instea of 4096.


v0.17.31 (2023-02-03)

* Remove results from callback when error in LongRunningJobs.
Expand Down
2 changes: 1 addition & 1 deletion aioradio/file_ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ def tsv_to_records(path: str, encoding: str, delimiter: str, header: str) -> tup
records = []
with open(path, newline='', encoding=encoding) as csvfile:

dialect = csv.Sniffer().sniff(csvfile.read(4096))
dialect = csv.Sniffer().sniff(csvfile.read(8192))
csvfile.seek(0)

# remove any null characters in the file
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
long_description = fileobj.read()

setup(name='aioradio',
version='0.17.31',
version='0.17.32',
description='Generic asynchronous i/o python utilities for AWS services (SQS, S3, DynamoDB, Secrets Manager), Redis, MSSQL (pyodbc), JIRA and more',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit f439d6b

Please sign in to comment.