fix_python_code¶
-
visualife.utils.fix_python_code(python_text)¶ Reformats Python source to correct some formatting issues.
Python code copied & pasted or extracted from HTML page may be incorrectly formatted. This function attempts to fix the following:
- proper indentation of the whole code
- removes double quote characters on both ends of the text