~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weavefile.py

Merge bzr.urllib.keepalive

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
 
125
125
    lines = iter(f.readlines())
126
126
    
127
 
    l = lines.next()
 
127
    try:
 
128
        l = lines.next()
 
129
    except StopIteration:
 
130
        raise WeaveFormatError('invalid weave file: no header')
 
131
 
128
132
    if l != FORMAT_1:
129
133
        raise WeaveFormatError('invalid weave file header: %r' % l)
130
134