def add_progress(kwargs, git, progress):
 if (progress is not None):
  v = git.version_info[:2]
  if (v >= (1, 7)):
   kwargs['progress'] = True
 return kwargs

def add_progress ( kwargs , git , progress ) : if ( progress is not None ) : v = git . version_info [ : 2 ] if ( v >= ( 1 , 7 ) ) : kwargs [ 'progress' ] = True return kwargs
add the --progress flag to the given kwargs dict if supported by the git command .