[libvirt] [PATCH sandbox-image 3/9] pylint: Use consistent indentation of 4 spaces

Cedric Bosdonnat cbosdonnat at suse.com
Thu Apr 19 07:21:02 UTC 2018


On Wed, 2018-04-18 at 21:57 +0100, Radostin Stoyanov wrote:
> Pylint warning W0311 - Bad indentation
> 
> http://pylint-messages.wikidot.com/messages:w0311
> 
> Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
> ---
>  libvirt_sandbox_image/sources/docker.py | 4 ++--
>  scripts/virt-sandbox-image              | 2 +-
>  setup.py                                | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/libvirt_sandbox_image/sources/docker.py b/libvirt_sandbox_image/sources/docker.py
> index cf90112..94eb6d1 100755
> --- a/libvirt_sandbox_image/sources/docker.py
> +++ b/libvirt_sandbox_image/sources/docker.py
> @@ -47,9 +47,9 @@ class DockerConfParser():
>      def getEnvs(self):
>          lst = self.json_data['config']['Env']
>          if lst is not None and isinstance(lst,list):
> -          return lst
> +            return lst
>          else:
> -          return []
> +            return []
>  
>  class DockerImage():
>  
> diff --git a/scripts/virt-sandbox-image b/scripts/virt-sandbox-image
> index 9d0ff82..c021850 100755
> --- a/scripts/virt-sandbox-image
> +++ b/scripts/virt-sandbox-image
> @@ -6,4 +6,4 @@ import sys
>  from libvirt_sandbox_image import cli
>  
>  if __name__ == '__main__':
> -   sys.exit(cli.main())
> +    sys.exit(cli.main())
> diff --git a/setup.py b/setup.py
> index 85f5d45..dd22fd5 100644
> --- a/setup.py
> +++ b/setup.py
> @@ -97,7 +97,7 @@ setup(
>      ],
>      install_requires=[],
>      cmdclass = {
> -          'build': my_build,
> +        'build': my_build,
>      },
>      classifiers = [
>          "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",

ACK
--
Cedric




More information about the libvir-list mailing list