HomeClusterLabs Projects

Refactor: python: Improve resourcerecover.py.

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Refactor: python: Improve resourcerecover.py.

  • Disable pylint warnings we can't really do anything about.
  • Simplify how the pats lists are built.
  • Get rid of the max attribute. It is unused.
  • Rename most attributes to use a leading underscore, since they are private.
  • Rename all methods to be private and follow python naming conventions.
  • Use %r instead of repr in format strings.
  • Use a list comprehension instead of map(str.strip, lst). You're not really supposed to use map anymore, though I'm not sure why pylint isn't warning on this.
  • Get rid of unnecessary elif statements.

Details

Provenance
clumensAuthored on Jun 1 2023, 10:36 AM

Commit No Longer Exists

This commit no longer exists in the repository.