3ea0e1b pylint: Fix consider-using-in

3 files Authored by slev 2 years ago, Committed by rcritten 2 years ago,
    pylint: Fix consider-using-in
    
    Pylint 2.11.0 extends consider-using-in check to work for
    attribute access.
    
    > To check if a variable is equal to one of many values,combine the
      values into a tuple and check if the variable is contained "in" it
      instead of checking for equality against each of the values.This
      is faster and less verbose.
    
    Fixes: https://pagure.io/freeipa/issue/9117
    Signed-off-by: Stanislav Levin <slev@altlinux.org>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    
        
file modified
+1 -1