mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
Apply some 2to3 refactorings
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
20dc452614
commit
ef1de9ecaf
@@ -326,7 +326,7 @@ def better_exec(code, context, text, realfile):
|
||||
"""
|
||||
import bb.parse
|
||||
try:
|
||||
exec code in _context, context
|
||||
exec(code, _context, context)
|
||||
except:
|
||||
(t, value, tb) = sys.exc_info()
|
||||
|
||||
@@ -349,7 +349,7 @@ def better_exec(code, context, text, realfile):
|
||||
raise
|
||||
|
||||
def simple_exec(code, context):
|
||||
exec code in _context, context
|
||||
exec(code, _context, context)
|
||||
|
||||
def better_eval(source, locals):
|
||||
return eval(source, _context, locals)
|
||||
|
||||
Reference in New Issue
Block a user