def _GetLines(line_strings):
 lines = []
 for line_string in line_strings:
  line = list(map(int, line_string.split('-', 1)))
  if (line[0] < 1):
   raise errors.YapfError(('invalid start of line range: %r' % line))
  if (line[0] > line[1]):
   raise errors.YapfError('end comes before start in line range: %r', line)
  lines.append(tuple(line))
 return lines

def _GetLines ( line_strings ) : lines = [ ] for line_string in line_strings : line = list ( map ( int , line_string . split ( '-' , 1 ) ) ) if ( line [ 0 ] < 1 ) : raise errors . YapfError ( ( 'invalid start of line range: %r' % line ) ) if ( line [ 0 ] > line [ 1 ] ) : raise errors . YapfError ( 'end comes before start in line range: %r' , line ) lines . append ( tuple ( line ) ) return lines
parses the start and end lines from a line string like start-end .