1
0
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:
Chris Larson
2010-06-20 12:08:07 -07:00
committed by Richard Purdie
parent 20dc452614
commit ef1de9ecaf
11 changed files with 43 additions and 43 deletions
+2 -2
View File
@@ -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)