Revision 14612
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/csvs.py | ||
---|---|---|
139 | 139 |
|
140 | 140 |
##### Row filters |
141 | 141 |
|
142 |
class Reader: |
|
143 |
def __iter__(self): return self |
|
144 |
|
|
145 |
def close(self): pass # support using as a stream |
|
146 |
|
|
142 | 147 |
class Filter: |
143 | 148 |
'''Wraps a reader, filtering each row''' |
144 | 149 |
def __init__(self, filter_, reader): |
Also available in: Unified diff
lib/csvs.py: added Reader