Explorar el Código

Fix dulwich.porcelain.diff_tree default outstream value

sys.stdout.buffer is failing on Jupyter notebook environments. Fix #950
Boris Feld hace 3 años
padre
commit
7bab4803b4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dulwich/porcelain.py

+ 1 - 1
dulwich/porcelain.py

@@ -832,7 +832,7 @@ def show(
             show_object(r, o, decode, outstream)
 
 
-def diff_tree(repo, old_tree, new_tree, outstream=sys.stdout.buffer):
+def diff_tree(repo, old_tree, new_tree, outstream=default_bytes_out_stream):
     """Compares the content and mode of blobs found via two tree objects.
 
     Args: