~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to patches.py

  • Committer: Aaron Bentley
  • Date: 2005-09-19 04:18:54 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20050919041854-f7cbbf42bc001947
made patch parser tolerate new === gunk in bzr patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
302
302
    for line in iter_lines:
303
303
        if line.startswith('*** '):
304
304
            continue
 
305
        if line.startswith('==='):
 
306
            continue
305
307
        elif line.startswith('--- '):
306
308
            if len(saved_lines) > 0:
307
309
                yield saved_lines