escape_python_string

Function escape_python_string 

Source
fn escape_python_string(s: &str) -> String
Expand description

Escape a string for Python syntax

This function properly escapes a string to be used in Python source code, using the appropriate quote character and escaping rules.