瀏覽代碼

Merge pull request #29 from myint/master

Remove code made unnecessary by #28
Matthew Wang 11 年之前
父節點
當前提交
551350d81d
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1
    7
      cdiff.py

+ 1
- 7
cdiff.py 查看文件

@@ -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: