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
         pager = subprocess.Popen(['less', '-FRSXK'],
493
         pager = subprocess.Popen(['less', '-FRSXK'],
494
                 stdin=subprocess.PIPE, stdout=sys.stdout)
494
                 stdin=subprocess.PIPE, stdout=sys.stdout)
495
         for line in color_diff:
495
         for line in color_diff:
496
-            pager.stdin.write(line)
496
+            pager.stdin.write(line.encode('utf-8'))
497
 
497
 
498
         pager.stdin.close()
498
         pager.stdin.close()
499
         pager.wait()
499
         pager.wait()