def show_path_changes(path_changes):
 (sources, destinations) = zip(*path_changes)
 sources = list(map(util.displayable_path, sources))
 destinations = list(map(util.displayable_path, destinations))
 col_width = ((term_width() - len(' -> ')) // 2)
 max_width = len(max((sources + destinations), key=len))
 if (max_width > col_width):
  for (source, dest) in zip(sources, destinations):
   log.info(u'{0} \n  -> {1}', source, dest)
 else:
  title_pad = ((max_width - len('Source ')) + len(' -> '))
  log.info(u'Source {0} Destination', (' ' * title_pad))
  for (source, dest) in zip(sources, destinations):
   pad = (max_width - len(source))
   log.info(u'{0} {1} -> {2}', source, (' ' * pad), dest)

def show_path_changes ( path_changes ) : ( sources , destinations ) = zip ( * path_changes ) sources = list ( map ( util . displayable_path , sources ) ) destinations = list ( map ( util . displayable_path , destinations ) ) col_width = ( ( term_width ( ) - len ( ' -> ' ) ) // 2 ) max_width = len ( max ( ( sources + destinations ) , key = len ) ) if ( max_width > col_width ) : for ( source , dest ) in zip ( sources , destinations ) : log . info ( u'{0} \n  -> {1}' , source , dest ) else : title_pad = ( ( max_width - len ( 'Source ' ) ) + len ( ' -> ' ) ) log . info ( u'Source {0} Destination' , ( ' ' * title_pad ) ) for ( source , dest ) in zip ( sources , destinations ) : pad = ( max_width - len ( source ) ) log . info ( u'{0} {1} -> {2}' , source , ( ' ' * pad ) , dest )
given a list of tuples that indicate the path changes .