def _CanMergeLineIntoIfStatement(lines, limit):
 if ((len(lines[1].tokens) == 1) and lines[1].last.is_multiline_string):
  return True
 if (lines[0].lineno != lines[1].lineno):
  return False
 if (lines[1].last.total_length >= limit):
  return False
 return style.Get('JOIN_MULTIPLE_LINES')

def _CanMergeLineIntoIfStatement ( lines , limit ) : if ( ( len ( lines [ 1 ] . tokens ) == 1 ) and lines [ 1 ] . last . is_multiline_string ) : return True if ( lines [ 0 ] . lineno != lines [ 1 ] . lineno ) : return False if ( lines [ 1 ] . last . total_length >= limit ) : return False return style . Get ( 'JOIN_MULTIPLE_LINES' )
determine if we can merge a short if-then statement into one line .