Explorar el Código

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

Matthew Wang hace 12 años
padre
commit
7563c80443
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/cdiff.py

+ 1
- 1
src/cdiff.py Ver fichero

@@ -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()