Removes commented-out Python code.
| MULTILINE_ASSIGNMENT_REGEX |
| PARTIAL_DICTIONARY_REGEX |
| __version__ |
| None |
| comment_contains_code | Return True comment contains code. |
| commented_out_code_line_numbers | Yield line numbers of commented-out code. |
| detect_encoding | Return file encoding. |
| filter_commented_out_code | Yield code with commented out code removed. |
| fix_file | Run filter_commented_out_code() on file. |
| main | Main entry point. |
| multiline_case | Return True if line is probably part of some multiline code. |
| open_with_encoding | Return opened file with a specific encoding. |
Return True comment contains code.
Yield line numbers of commented-out code.
Return file encoding.
Yield code with commented out code removed.
Run filter_commented_out_code() on file.
Main entry point.
Return True if line is probably part of some multiline code.
Return opened file with a specific encoding.