(self, string, *, quote_types=_ALL_QUOTES)
Write string literal value with a best effort attempt to avoid backslashes.
Write string literal value with a best effort attempt to avoid backslashes.
Write string literal value with a best effort attempt to avoid backslashes .
def _write_str_avoiding_backslashes(self, string, *, quote_types=_ALL_QUOTES):
        """Write string literal value with a best effort attempt to avoid backslashes."""
        string, quote_types = self._str_literal_helper(string, quote_types=quote_types)
        quote_type = quote_types[0]
        self.write(f"{quote_type}{string}{quote_type}")
def _write_str_avoiding_backslashes ( self , string , * , quote_types = _ALL_QUOTES ) : string , quote_types = self . _str_literal_helper ( string , quote_types = quote_types ) quote_type = quote_types [ 0 ] self . write ( f"{quote_type}{string}{quote_type}" )