migrate_config

Replace the old conf[“dict-key”] syntax with the new conf.attribute syntax, which was introduced in #833.

Module Contents

Functions

replace_in_file(args, file)

Performs the conversion on a file with the provided options.

main()

Attributes

mapping

lookup

old_expr

migrate_config.mapping
migrate_config.lookup
migrate_config.old_expr
migrate_config.replace_in_file(args, file)

Performs the conversion on a file with the provided options.

Parameters:
  • args (argparse.Namespace) –

  • file (pathlib.Path) –

migrate_config.main()