[blivet:master 0/3] Suppressing some unused variable warnings

mulhern amulhern at redhat.com
Mon Mar 24 17:35:34 UTC 2014


By prepending the unused variable names with an underscore.

We only do this if we believe that the variables are legitimately unused.

It's better than adding a pylint ignore annotation because it is much
more specific and easier to read.

mulhern (3):
  Suppress some unused variable warnings
  Suppress some unused variable warnings.
  Suppress unused variable warnings for index in range

 blivet/__init__.py                  | 13 +++++++------
 blivet/devices.py                   | 11 +++++++----
 blivet/devicetree.py                |  3 ++-
 blivet/fcoe.py                      |  2 +-
 blivet/formats/fs.py                |  2 +-
 blivet/iscsi.py                     |  2 +-
 blivet/tsort.py                     |  2 +-
 blivet/util.py                      |  4 ++--
 examples/common.py                  |  4 ++--
 scripts/makeupdates                 |  2 +-
 tests/devicelibs_test/baseclass.py  |  2 +-
 tests/devicelibs_test/lvm_test.py   |  2 +-
 tests/formats_test/labeling_test.py | 12 ++++++------
 13 files changed, 33 insertions(+), 28 deletions(-)

-- 
1.8.3.1



More information about the anaconda-patches mailing list