Merge ~cjwatson/launchpad:fix-py3-execfile into launchpad:master
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 8cea96837cd6ceac0c171f5e5b615f54d14d199d |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:fix-py3-execfile |
Merge into: | launchpad:master |
Diff against target: |
13 lines (+1/-1) 1 file modified
lib/lp/scripts/harness.py (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ioana Lasc (community) | Approve | ||
Review via email: mp+403804@code.launchpad.net |
Commit message
lp.scripts.harness: Fix exec() for Python 2
Description of the change
https:/
Traceback (most recent call last):
File "bin/harness", line 5, in <module>
import lp.scripts.harness
File ".../lib/
SyntaxError: unqualified exec is not allowed in function '_get_locals' because it contains a nested function with free variables
Explicitly passing `globals()` avoids this.