summaryrefslogtreecommitdiff
path: root/yaksh/file_utils.py
diff options
context:
space:
mode:
authorprathamesh2017-11-14 17:49:35 +0530
committerprathamesh2017-11-14 17:49:35 +0530
commit29e358a6fcd438fa7ddf3d3bccb2af1839158ba6 (patch)
tree00bbe047806641c0ec4ee34698c7171021f3197d /yaksh/file_utils.py
parent8bbcd2163c20bc3bd7b501d108ede59614deced5 (diff)
downloadonline_test-29e358a6fcd438fa7ddf3d3bccb2af1839158ba6.tar.gz
online_test-29e358a6fcd438fa7ddf3d3bccb2af1839158ba6.tar.bz2
online_test-29e358a6fcd438fa7ddf3d3bccb2af1839158ba6.zip
Added ',' as the specific delimiter for the csv upload
Diffstat (limited to 'yaksh/file_utils.py')
-rw-r--r--yaksh/file_utils.py2
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