(elided)
return elided
Collapses strings and chars on a line to simple "" or '' blocks.

    We nix strings first so we're not fooled by text like '"http://"'

    Args:
      elided: The line being processed.

    Returns:
      The line with collapsed strings.
Collapses strings and chars on a line to simple "" or '' blocks.
Collapses strings and chars on a line to simple or blocks .
def _CollapseStrings(elided):
    """Collapses strings and chars on a line to simple "" or '' blocks.

    We nix strings first so we're not fooled by text like '"http://"'

    Args:
      elided: The line being processed.

    Returns:
      The line with collapsed strings.
    """
    if not _RE_PATTERN_INCLUDE.match(elided):
      # Remove escaped characters first to make quote/single quote collapsing
      # basic.  Things that look like escaped characters shouldn't occur
      # outside of strings and chars.
      elided = _RE_PATTERN_CLEANSE_LINE_ESCAPES.sub('', elided)
      elided = _RE_PATTERN_CLEANSE_LINE_SINGLE_QUOTES.sub("''", elided)
      elided = _RE_PATTERN_CLEANSE_LINE_DOUBLE_QUOTES.sub('""', elided)
    return elided
def _CollapseStrings ( elided ) : if not _RE_PATTERN_INCLUDE . match ( elided ) : # Remove escaped characters first to make quote/single quote collapsing # basic.  Things that look like escaped characters shouldn't occur # outside of strings and chars. elided = _RE_PATTERN_CLEANSE_LINE_ESCAPES . sub ( '' , elided ) elided = _RE_PATTERN_CLEANSE_LINE_SINGLE_QUOTES . sub ( "''" , elided ) elided = _RE_PATTERN_CLEANSE_LINE_DOUBLE_QUOTES . sub ( '""' , elided ) return elided