HomeClusterLabs Projects

Refactor: python: Fix pylint warnings in get_patterns and __getitem__.

Description

Refactor: python: Fix pylint warnings in get_patterns and getitem.

  • get_patterns should return a default value if given a key it doesn't understand, just like getitem does.
  • Instead of the if/elif/else chain, these can just be ifs followed by an unconditional return. pylint likes this style better for whatever reason.

Details

Provenance
clumensAuthored on Feb 9 2023, 3:01 PM
Parents
rP5c5ceb18d69f: Refactor: python: Use argparse in patterns.py.
Branches
Unknown
Tags
Unknown