Revision 14591
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/csvs.py | ||
---|---|---|
216 | 216 |
def mk_value(row, row_num): return row_num |
217 | 217 |
ColInsertFilter.__init__(self, reader, mk_value, 0) |
218 | 218 |
|
219 |
class InputRewriter(StreamFilter): |
|
219 |
class InputRewriter(StreamFilter): # is also a stream
|
|
220 | 220 |
'''Wraps a reader, writing each row back to CSV''' |
221 | 221 |
def __init__(self, reader, dialect=csv.excel): |
222 | 222 |
StreamFilter.__init__(self, reader) |
Also available in: Unified diff
lib/csvs.py: InputRewriter: documented that this is also a stream (in addition to inheriting from StreamFilter)