2020)
2121from .exc import GitCommandError
2222from git .compat import (
23- text_type ,
2423string_types ,
2524defenc ,
2625PY3
@@ -400,7 +399,8 @@ def execute(self, command,
400399if self .GIT_PYTHON_TRACE == 'full' :
401400cmdstr = " " .join (command )
402401if stderr_value :
403- log .info ("%s -> %d; stdout: '%s'; stderr: '%s'" ,cmdstr ,status ,stdout_value .decode (defenc ),stderr_value .decode (defenc ))
402+ log .info ("%s -> %d; stdout: '%s'; stderr: '%s'" ,
403+ cmdstr ,status ,stdout_value .decode (defenc ),stderr_value .decode (defenc ))
404404elif stdout_value :
405405log .info ("%s -> %d; stdout: '%s'" ,cmdstr ,status ,stdout_value .decode (defenc ))
406406else :
@@ -413,8 +413,7 @@ def execute(self, command,
413413else :
414414raise GitCommandError (command ,status ,stderr_value )
415415
416-
417- if isinstance (stdout_value ,bytes ):# could also be output_stream
416+ if isinstance (stdout_value ,bytes ):# could also be output_stream
418417stdout_value = stdout_value .decode (defenc )
419418
420419# Allow access to the command's status code