clean_legacy_configuration
Full name: ase2sprkkr.configuration_migration.clean_legacy_configuration
- ase2sprkkr.configuration_migration.clean_legacy_configuration(file)[source]
Remove migrated top-level
config.* = ...statements from a script.Only plain top-level assignments are removed. Conditional or otherwise dynamic uses of
configare deliberately retained. A directly preceding contiguous comment block is removed together with an assignment. Thefrom ase2sprkkr.configuration import configimport is removed only when no remaining code refers toconfig. Runs of blank lines left by removed blocks are collapsed to a single blank line.