~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to weave.py

  • Committer: Martin Pool
  • Date: 2005-07-01 04:07:49 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mbp@sourcefrog.net-20050701040749-864c3b777beb353c
Fix get_iter call

Show diffs side-by-side

added added

removed removed

Lines of Context:
534
534
        write_weave_v1(w, file(fn, 'wb'))
535
535
    elif cmd == 'get':
536
536
        w = read_weave(file(argv[2], 'rb'))
537
 
        sys.stdout.writelines(w.getiter(int(argv[3])))
 
537
        sys.stdout.writelines(w.get_iter(int(argv[3])))
538
538
    elif cmd == 'annotate':
539
539
        w = read_weave(file(argv[2], 'rb'))
540
540
        # newline is added to all lines regardless; too hard to get