Преглед изворни кода

Merge pull request #34 from myint/stream

Remove obsolete code
Matthew Wang пре 12 година
родитељ
комит
f85a5e2b20
1 измењених фајлова са 0 додато и 3 уклоњено
  1. 0
    3
      cdiff.py

+ 0
- 3
cdiff.py Прегледај датотеку

741
         markup_to_pager(stream, opts)
741
         markup_to_pager(stream, opts)
742
     else:
742
     else:
743
         # pipe out stream untouched to make sure it is still a patch
743
         # pipe out stream untouched to make sure it is still a patch
744
-        if sys.hexversion < 0x03000000:
745
-            reload(sys).setdefaultencoding('utf8')
746
-
747
         byte_output = (sys.stdout.buffer if hasattr(sys.stdout, 'buffer')
744
         byte_output = (sys.stdout.buffer if hasattr(sys.stdout, 'buffer')
748
                        else sys.stdout)
745
                        else sys.stdout)
749
         for line in stream:
746
         for line in stream: