Project

General

Profile

« Previous | Next » 

Revision 14577

lib/csvs.py: added header(stream)

View differences:

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