HomeClusterLabs Projects

Refactor: python: Minor fixes.

Description

Refactor: python: Minor fixes.

  • Get rid of some unnecessary parens where we were constructing one element tuples for string substitutions.
  • Remove XmlBase.init. This function doesn't do anything aside from call the superclass.
  • Don't inherit from object.
  • Use += where possible.
  • Use % for string substitutions instead of adding.
  • Don't rename the parameter to add_child in a subclass.

Details

Provenance
clumensAuthored on Jun 29 2023, 10:59 AM
Parents
rPe0feaa27d10b: Refactor: python: Use items() to iterate over dicts.
Branches
Unknown
Tags
Unknown