Browse Source

Merge branch 'python3' of https://github.com/myint/cdiff

Matthew Wang 12 years ago
parent
commit
7563c80443
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/cdiff.py

+ 1
- 1
src/cdiff.py View File

@@ -493,7 +493,7 @@ if __name__ == '__main__':
493 493
         pager = subprocess.Popen(['less', '-FRSXK'],
494 494
                 stdin=subprocess.PIPE, stdout=sys.stdout)
495 495
         for line in color_diff:
496
-            pager.stdin.write(line)
496
+            pager.stdin.write(line.encode('utf-8'))
497 497
 
498 498
         pager.stdin.close()
499 499
         pager.wait()