/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/weavefile.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-25 20:48:24 UTC
  • mfrom: (2041 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2050.
  • Revision ID: john@arbash-meinel.com-20060925204824-f4fff4858fa59b0c
[merge] bzr.dev 2041

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