[blivet:master 10/15] Disable unused argument warning for 'b' in create_sparse_file
David Lehman
dlehman at redhat.com
Fri May 9 18:41:33 UTC 2014
On 05/07/2014 06:05 PM, mulhern wrote:
> 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.
These have been moved into blivet.util and no longer take a Blivet
instance as an argument.
David
>
> 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
>
>
More information about the anaconda-patches
mailing list