~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

Handled more pipe errors for display commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
509
509
def display_command(func):
510
510
    def ignore_pipe(*args, **kwargs):
511
511
        try:
512
 
            return func(*args, **kwargs)
 
512
            result = func(*args, **kwargs)
 
513
            sys.stdout.flush()
 
514
            return result
513
515
        except IOError, e:
514
516
            if e.errno != errno.EPIPE:
515
517
                raise