def git_info(path):
 command = ['git', 'log', '-1', '--format=%H\n%s\n%cD']
 (sha, msg, date) = check_output(command, cwd=path).decode('utf8').splitlines()
 return dict(sha=sha, date=date, msg=msg)

def git_info ( path ) : command = [ 'git' , 'log' , '-1' , '--format=%H\n%s\n%cD' ] ( sha , msg , date ) = check_output ( command , cwd = path ) . decode ( 'utf8' ) . splitlines ( ) return dict ( sha = sha , date = date , msg = msg )
return some git info .