Revision 5574
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/csvs.py | ||
---|---|---|
122 | 122 |
def __iter__(self): return self |
123 | 123 |
|
124 | 124 |
def next(self): return self.filter(self.reader.next()) |
125 |
|
|
126 |
def close(self): pass # support using as a stream |
|
125 | 127 |
|
126 | 128 |
std_nulls = [r'\N'] |
127 | 129 |
empty_nulls = [''] + std_nulls |
Also available in: Unified diff
csvs.py: Filter: Added empty close() method to support using it as a stream (such as with streams.ProgressInputStream)