You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: keep import path values if Bazel-builtin PyInfo is removed (bazel-contrib#2415)
The collect_imports() function added import strings from BuiltinPyInfo
if it was non-None.
However, operator precedence caused the `if-else` ternary to ignore both
list comprehensions
(one for PyInfo and one for BuiltinPyInfo) if BuiltinPyInfo was None.
To fix, I rewrote the function as a regular for loop to eliminate the
ambiguous looking
ternary expression.
Fixes: bazel-contrib#2414
0 commit comments