Explorar o código

Fix unified_diff.

Jelmer Vernooij %!s(int64=5) %!d(string=hai) anos
pai
achega
1f164b3260
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dulwich/patch.py

+ 1 - 1
dulwich/patch.py

@@ -105,7 +105,7 @@ def _format_range_unified(start, stop):
 
 def unified_diff(a, b, fromfile='', tofile='', fromfiledate='',
                  tofiledate='', n=3, lineterm='\n', tree_encoding='utf-8',
-                 output_encoding=None):
+                 output_encoding='utf-8'):
     """difflib.unified_diff that can detect "No newline at end of file" as
     original "git diff" does.