~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-01 06:53:57 UTC
  • mfrom: (2304.2.1 small.fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20070301065357-e0804257b4f378cf
(bialix) win32: suppress IOError with errno=22 (Invalid argument)
 when pipe is broken

Show diffs side-by-side

added added

removed removed

Lines of Context:
627
627
                raise
628
628
            if e.errno != errno.EPIPE:
629
629
                # Win32 raises IOError with errno=0 on a broken pipe
630
 
                if sys.platform != 'win32' or e.errno != 0:
 
630
                if sys.platform != 'win32' or (e.errno not in (0, errno.EINVAL)):
631
631
                    raise
632
632
            pass
633
633
        except KeyboardInterrupt: