/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 parser.py

  • Committer: James Westby
  • Date: 2008-03-07 14:45:55 UTC
  • mto: (0.64.56 fastimport_trunk)
  • mto: This revision was merged to the branch mainline in revision 6631.
  • Revision ID: jw+debian@jameswestby.net-20080307144555-sq0w13ocu5g5ji83
The data sections have an optional LF at the end in the byte count format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
434
434
                return self.read_until(rest[2:])
435
435
            else:
436
436
                size = int(rest)
437
 
                return self.read_bytes(size)
 
437
                read_bytes = self.read_bytes(size)
 
438
                # optional LF after data.
 
439
                next = self.input.readline()
 
440
                self.lineno += 1
 
441
                if len(next) > 1 or next != "\n":
 
442
                    self.push_line(next)
 
443
                return read_bytes
438
444
        else:
439
445
            self.abort(errors.MissingSection, required_for, section)
440
446