Removes commented-out Python code.
| __version__ |
| detect_encoding |
| Eradicator | Eradicate comments. |
| main | Main entry point. |
Eradicate comments.
| BRACKET_REGEX |
| CODE_INDICATORS |
| CODE_KEYWORDS |
| CODE_KEYWORDS_AGGR |
| CODING_COMMENT_REGEX |
| DEFAULT_WHITELIST |
| DEF_STATEMENT_REGEX |
| FOR_STATEMENT_REGEX |
| HASH_NUMBER |
| MULTILINE_ASSIGNMENT_REGEX |
| PARTIAL_DICTIONARY_REGEX |
| PRINT_RETURN_REGEX |
| WHITELIST_REGEX |
| WHITESPACE_HASH |
| WITH_STATEMENT_REGEX |
| 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. |
| multiline_case | Return True if line is probably part of some multiline code. |
| open_with_encoding | Return opened file with a specific encoding. |
| update_whitelist | Updates the whitelist. |
| None |
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.
Return True if line is probably part of some multiline code.
Return opened file with a specific encoding.
Updates the whitelist.
Main entry point.