Steven Myint пре 12 година
родитељ
комит
7940d95c4f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      src/cdiff.py

+ 1
- 1
src/cdiff.py Прегледај датотеку

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