Browse Source

Remove code made unnecessary by #28

Steven Myint 10 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,7 +26,6 @@ if sys.hexversion < 0x02050000:
26 26
 import re
27 27
 import signal
28 28
 import subprocess
29
-import errno
30 29
 import fcntl
31 30
 import os
32 31
 import difflib
@@ -717,12 +716,7 @@ def main():
717 716
 
718 717
     if opts.color == 'always' or \
719 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 720
     else:
727 721
         # pipe out stream untouched to make sure it is still a patch
728 722
         for line in stream: