Browse Source

Remove code made unnecessary by #28

Steven Myint 11 years ago
parent
commit
d3032476c1
1 changed files with 1 additions and 7 deletions
  1. 1
    7
      cdiff.py

+ 1
- 7
cdiff.py View File

26
 import re
26
 import re
27
 import signal
27
 import signal
28
 import subprocess
28
 import subprocess
29
-import errno
30
 import fcntl
29
 import fcntl
31
 import os
30
 import os
32
 import difflib
31
 import difflib
717
 
716
 
718
     if opts.color == 'always' or \
717
     if opts.color == 'always' or \
719
             (opts.color == 'auto' and sys.stdout.isatty()):
718
             (opts.color == 'auto' and sys.stdout.isatty()):
720
-        try:
721
-            markup_to_pager(stream, opts)
722
-        except IOError:
723
-            e = sys.exc_info()[1]
724
-            if e.errno == errno.EPIPE:
725
-                pass
719
+        markup_to_pager(stream, opts)
726
     else:
720
     else:
727
         # pipe out stream untouched to make sure it is still a patch
721
         # pipe out stream untouched to make sure it is still a patch
728
         for line in stream:
722
         for line in stream: