diff options
author | prathamesh | 2017-11-14 17:49:35 +0530 |
---|---|---|
committer | prathamesh | 2017-11-14 17:49:35 +0530 |
commit | 29e358a6fcd438fa7ddf3d3bccb2af1839158ba6 (patch) | |
tree | 00bbe047806641c0ec4ee34698c7171021f3197d | |
parent | 8bbcd2163c20bc3bd7b501d108ede59614deced5 (diff) | |
download | online_test-29e358a6fcd438fa7ddf3d3bccb2af1839158ba6.tar.gz online_test-29e358a6fcd438fa7ddf3d3bccb2af1839158ba6.tar.bz2 online_test-29e358a6fcd438fa7ddf3d3bccb2af1839158ba6.zip |
Added ',' as the specific delimiter for the csv upload
-rw-r--r-- | yaksh/file_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/file_utils.py b/yaksh/file_utils.py index c53c2dc..b178eeb 100644 --- a/yaksh/file_utils.py +++ b/yaksh/file_utils.py @@ -60,7 +60,7 @@ def is_csv(document): document.seek(0) content = document.read(1024) sniffer = csv.Sniffer() - dialect = sniffer.sniff(content) + dialect = sniffer.sniff(content, delimiters=',') document.seek(0) except (csv.Error, UnicodeDecodeError): return False, None |