Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CPUnetPLOT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
uahil
CPUnetPLOT
Commits
ac78817d
Commit
ac78817d
authored
Sep 16, 2014
by
Mario Hock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
597b09db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cnl_library.py
cnl_library.py
+2
-1
No files found.
cnl_library.py
View file @
ac78817d
...
...
@@ -98,6 +98,7 @@ class CNLParser:
def
__init__
(
self
,
filename
):
self
.
filename
=
filename
#print (filename)
if
(
os
.
path
.
isdir
(
self
.
filename
)
):
raise
self
.
WrongFileFormat_Exception
()
...
...
@@ -116,7 +117,7 @@ class CNLParser:
self
.
csv_header
=
next
(
csv_reader
)
self
.
csv_index
=
create_csv_index
(
self
.
csv_header
)
except
UnicodeDecodeError
:
self
.
WrongFileFormat_Exception
()
raise
self
.
WrongFileFormat_Exception
()
def
get_csv_iterator
(
self
,
fields
=
None
):
...
...
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