~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Alexander Belchenko
  • Date: 2007-02-28 18:39:16 UTC
  • mto: This revision was merged to the branch mainline in revision 2308.
  • Revision ID: bialix@ukr.net-20070228183916-p1eorz33v4zxy27m
Suppress IOError with errno=22 (Invalid argument) on win32 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: