Преглед на файлове

Handle large diffs in non-color mode

Steven Myint преди 11 години
родител
ревизия
4c83c806ea
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2
    1
      cdiff.py

+ 2
- 1
cdiff.py Целия файл

@@ -640,7 +640,8 @@ def main():
640 640
                 pass
641 641
     else:
642 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 646
     if diff_hdl is not sys.stdin:
646 647
         diff_hdl.close()