ba954ef Fix pylint 2.0 conditional-related violations

9 files Authored by abiagion 5 years ago, Committed by cheimes 5 years ago,
    Fix pylint 2.0 conditional-related violations
    
    In order to support pylint 2.0 the following violations must be fixed:
    
    - `chained-comparison` (R1716):
      Simplify chained comparison between the operands This message is
      emitted when pylint encounters boolean operation like
      "a < b and b < c", suggesting instead to refactor it to "a < b < c".
    
    - `consider-using-in` (R1714):
      Consider merging these comparisons with "in" to %r 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.
    
    Issue: https://pagure.io/freeipa/issue/7614
    
    Signed-off-by: Armando Neto <abiagion@redhat.com>
    Reviewed-By: Christian Heimes <cheimes@redhat.com>
    
        
file modified
+1 -1
file modified
+2 -2
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1
file modified
+2 -2
file modified
+1 -1
file modified
+2 -2