HomeClusterLabs Projects

Refactor: python: Minor style cleanups in environment.py.

Description

Refactor: python: Minor style cleanups in environment.py.

  • Imports should go on individual lines, and get rid of the wildcard import.
  • We don't need to inherit from object anymore.
  • Remove extraneous whitespace, and add blank lines in various places to make the code easier to read.
  • Get rid of the unnecessary "elif:" blocks that pylint doesn't like.
  • Remove a semicolon after a statement.
  • Switch "if not 'x' in lst" to "if 'x' not in lst".

Details

Provenance
clumensAuthored on Mar 15 2023, 12:19 PM
Parents
rPf406a94ac22b: Refactor: cts: DoBSC and benchmark are now booleans.
Branches
Unknown
Tags
Unknown