This commit is contained in:
@ -71,6 +71,7 @@ class ColumnFile(object):
|
||||
self._types=None
|
||||
|
||||
self._skip = skip
|
||||
self._lskip= len(skip)
|
||||
|
||||
def str2bool(x):
|
||||
return bool(eval(x.strip()[0].upper(),{'T':True,'V':True,'F':False}))
|
||||
@ -83,6 +84,8 @@ class ColumnFile(object):
|
||||
|
||||
def next(self):
|
||||
ligne = self._stream.next()
|
||||
while ligne[0:self._lskip]==self._skip:
|
||||
ligne = self._stream.next()
|
||||
data = ligne.split(self._delimiter)
|
||||
if self._strip or self._types:
|
||||
data = [x.strip() for x in data]
|
||||
|
Reference in New Issue
Block a user