def _format_range_unified(start, stop):
 beginning = (start + 1)
 length = (stop - start)
 if (length == 1):
  return '{}'.format(beginning)
 if (not length):
  beginning -= 1
 return '{},{}'.format(beginning, length)

def _format_range_unified ( start , stop ) : beginning = ( start + 1 ) length = ( stop - start ) if ( length == 1 ) : return '{}' . format ( beginning ) if ( not length ) : beginning -= 1 return '{},{}' . format ( beginning , length )
convert range to the "ed" format .