Commit 90f9339
committed
ie options: Fix Python 3
In Python 3 list comprehensions were changed to create their own local
scope. If we pass in different objects for the `globals` and
`locals` to the `exec` function this leads to `NameErrors` in the list
comprehension. SCons passes in two different dictionaries when calling
`exec` on the the options files. To circumvent this issue, we rewrite
the list comprehension to a loop.
For reference:
https://stackoverflow.com/questions/45132645/list-comprehension-in-exec-with-empty-locals-nameerrorexec issue with list comprehensions1 parent c6c8336 commit 90f9339
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
| |||
0 commit comments