pylint #22277 Fragile reimport warning false positives [validation pending]
The following examples demonstrate the problem:
== bad.py ==
== Reimport 'util' (imported line 3) ==
== good.py ==
== No (relevant) errors ==
Basically, the problem comes down to the non-deterministic dict order and the use of context.values() in the get_first_import() function. Changing context.values() => context.asList() fixes this problem. | |
priority | important |
---|---|
type | bug |
done in | 0.27.0 |
load | 0.500 |
load left | 0.000 |
closed by | <not specified> |
Comments
-
2013/02/26 22:37, written by sthenault
add commentFixed by #112667