Per https://docs.python.org/3/library/functions.html#exec, the globals parameter comes before the locals one. Since globals and locals refer to the same object for the call in question, we can remove locals, which will cause the globals parameter to be used for both the global and the local variables, thus keeping the same behavior.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 39476 Build 39494: arc lint + arc unit
Event Timeline
Comment Actions
LGTM but would suggest this altered description:
Per https://docs.python.org/3/library/functions.html#exec, globals parameter comes before locals. Since globals and locals refer to the same object for the call in question, we can remove locals, which will make globals used for both the global and the local variables, thus keeping the same behavior.