~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/serializer/__init__.py

  • Committer: Aaron Bentley
  • Date: 2006-06-21 15:02:40 UTC
  • mto: This revision was merged to the branch mainline in revision 1808.
  • Revision ID: abentley@panoramicfeedback.com-20060621150240-f0e4981af656ddec
Fix reporting of malformed, (especially, crlf) bundles

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        if m:
53
53
            version = m.group('version')
54
54
            break
 
55
        elif line.startswith(BUNDLE_HEADER):
 
56
            raise errors.MalformedHeader()
55
57
        m = CHANGESET_OLD_HEADER_RE.match(line)
56
58
        if m:
57
59
            version = m.group('version')