Files
freeipa/ipalib
Alexander Bokovoy c61151f6aa pylint3: workaround false positives reported for W1662
Pylint3 falsely reports warning W1662: using a variable that was bound
inside a comprehension for the cases where the same name is reused for a
loop after the comprehension in question.

Rename the variable in a loop to avoid it.

If the code looks like the following:

  arr = [f for f in filters if callable(f)]
  for f in arr:
      result = result + f()

pylint3 would consider 'f' used outside of comprehension. Clearly, this
is a false-positive warning as the second 'f' use is completely
independent of the comprehension's use of 'f'.

Reviewed-By: Aleksei Slaikovskii <aslaikov@redhat.com>
2018-05-17 16:55:42 -04:00
..
2015-09-01 11:42:01 +02:00
2016-11-24 15:46:40 +01:00
2018-04-30 20:42:00 +02:00
2017-11-21 16:13:28 +01:00
2017-02-17 10:22:07 +01:00
2017-10-25 09:46:41 +02:00
2018-01-31 16:03:19 +01:00
2016-10-20 18:43:37 +02:00
2018-03-23 12:48:46 +01:00