Revision 14577
Added by Aaron Marcuse-Kubitza over 10 years ago
csvs.py | ||
---|---|---|
116 | 116 |
info = stream_info(stream, parse_header=True) |
117 | 117 |
return (make_reader(stream, info.dialect), info.header) |
118 | 118 |
|
119 |
def header(stream): |
|
120 |
'''fetches just the header line of a stream''' |
|
121 |
reader, header = reader_and_header(stream) |
|
122 |
return header |
|
123 |
|
|
119 | 124 |
##### csv modifications |
120 | 125 |
|
121 | 126 |
# Note that these methods only work on *instances* of Dialect classes |
Also available in: Unified diff
lib/csvs.py: added header(stream)