Sfoglia il codice sorgente

Remove obsolete code

Steven Myint 11 anni fa
parent
commit
790373dcb3
1 ha cambiato i file con 0 aggiunte e 3 eliminazioni
  1. 0
    3
      cdiff.py

+ 0
- 3
cdiff.py Vedi File

@@ -741,9 +741,6 @@ def main():
741 741
         markup_to_pager(stream, opts)
742 742
     else:
743 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 744
         byte_output = (sys.stdout.buffer if hasattr(sys.stdout, 'buffer')
748 745
                        else sys.stdout)
749 746
         for line in stream: