[elbe-devel] [PATCH 01/10] elbexml: make Validationmode a proper enum

Manuel Traut manut at linutronix.de
Wed Apr 10 10:35:20 CEST 2019


On 15:42 Mon 08 Apr     , Torben Hohn wrote:
> pylint complains about different types being assigned to url_validation.
> Fix that up.
> 
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>

Reviewed-by: Manuel Traut <manut at linutronix.de>


> ---
>  elbepack/elbexml.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/elbepack/elbexml.py b/elbepack/elbexml.py
> index 26786c3c..97536af7 100644
> --- a/elbepack/elbexml.py
> +++ b/elbepack/elbexml.py
> @@ -45,9 +45,9 @@ class NoInitvmNode(Exception):
>  
>  
>  class ValidationMode(object):
> -    NO_CHECK = True
> +    NO_CHECK = 1
>      CHECK_BINARIES = 2
> -    CHECK_ALL = False
> +    CHECK_ALL = 0
>  
>  
>  class ElbeXML(object):
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel



More information about the elbe-devel mailing list