[blivet:master 10/15] Disable unused argument warning for 'b' in create_sparse_file

mulhern amulhern at redhat.com
Wed May 7 23:05:54 UTC 2014


This allows this method to have a uniform interface with print_devices
and tear_down_disk_images in the same file.

It's somewhat off-putting that anaconda has dependencies on methods that are
in the blivet examples directory, but it depends on both create_sparse_file
and tear_down_disk_images in common.py.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 examples/common.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/common.py b/examples/common.py
index 0344833..8cc96c3 100644
--- a/examples/common.py
+++ b/examples/common.py
@@ -21,6 +21,7 @@ def print_devices(b):
 
 def create_sparse_file(b, name, size):
     """ Create a sparse file for use as a disk image. """
+    # pylint: disable=unused-argument
     import blivet
     import tempfile
 
-- 
1.8.3.1



More information about the anaconda-patches mailing list