Browse Source

Handle large diffs in non-color mode

Steven Myint 12 years ago
parent
commit
4c83c806ea
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      cdiff.py

+ 2
- 1
cdiff.py View File

640
                 pass
640
                 pass
641
     else:
641
     else:
642
         # pipe out stream untouched to make sure it is still a patch
642
         # pipe out stream untouched to make sure it is still a patch
643
-        sys.stdout.write(''.join(stream))
643
+        for line in stream:
644
+            sys.stdout.write(decode(line))
644
 
645
 
645
     if diff_hdl is not sys.stdin:
646
     if diff_hdl is not sys.stdin:
646
         diff_hdl.close()
647
         diff_hdl.close()