Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
c209e8a6
Commit
c209e8a6
authored
Aug 17, 2017
by
sim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Fix CSV parse error when input contains blank lines
parent
28c2b4c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
CSV.py
gargantext/util/parsers/CSV.py
+1
-1
No files found.
gargantext/util/parsers/CSV.py
View file @
c209e8a6
...
@@ -15,7 +15,7 @@ class CSVParser(Parser):
...
@@ -15,7 +15,7 @@ class CSVParser(Parser):
contents
=
filebuf
.
read
()
.
decode
(
"UTF-8"
)
.
split
(
"
\n
"
)
contents
=
filebuf
.
read
()
.
decode
(
"UTF-8"
)
.
split
(
"
\n
"
)
# Filter out empty lines
# Filter out empty lines
contents
=
list
(
filter
(
None
,
contents
))
contents
=
[
line
for
line
in
contents
if
line
.
strip
()]
sample_size
=
10
sample_size
=
10
sample_contents
=
contents
[
0
:
sample_size
]
sample_contents
=
contents
[
0
:
sample_size
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment