def _CanPlaceOnSingleLine(uwline):
 indent_amt = (style.Get(u'INDENT_WIDTH') * uwline.depth)
 last = uwline.last
 last_index = (-1)
 if (last.is_comment and re.search(u'^#+\\s+pylint:', last.value.strip(), re.IGNORECASE)):
  last = last.previous_token
  last_index = (-2)
 if (last is None):
  return True
 return (((last.total_length + indent_amt) <= style.Get(u'COLUMN_LIMIT')) and (not any((tok.is_comment for tok in uwline.tokens[:last_index]))))

def _CanPlaceOnSingleLine ( uwline ) : indent_amt = ( style . Get ( u'INDENT_WIDTH' ) * uwline . depth ) last = uwline . last last_index = ( - 1 ) if ( last . is_comment and re . search ( u'^#+\\s+pylint:' , last . value . strip ( ) , re . IGNORECASE ) ) : last = last . previous_token last_index = ( - 2 ) if ( last is None ) : return True return ( ( ( last . total_length + indent_amt ) <= style . Get ( u'COLUMN_LIMIT' ) ) and ( not any ( ( tok . is_comment for tok in uwline . tokens [ : last_index ] ) ) ) )
determine if the unwrapped line can go on a single line .