diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-20 12:08:07 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:37 +0100 |
commit | ef1de9ecaf73e28234d284b79ec45e084d0f0c53 (patch) | |
tree | 417f87922c1a2fa4a3bbd4b35e0772221f96641e /bitbake/lib/bb/utils.py | |
parent | 20dc452614c991d1a4f5b7dcc1307cd03cba0c55 (diff) | |
download | poky-ef1de9ecaf73e28234d284b79ec45e084d0f0c53.tar.gz |
Apply some 2to3 refactorings
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r-- | bitbake/lib/bb/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index a7fb44d7d2..c0cc9c6ea2 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -326,7 +326,7 @@ def better_exec(code, context, text, realfile): | |||
326 | """ | 326 | """ |
327 | import bb.parse | 327 | import bb.parse |
328 | try: | 328 | try: |
329 | exec code in _context, context | 329 | exec(code, _context, context) |
330 | except: | 330 | except: |
331 | (t, value, tb) = sys.exc_info() | 331 | (t, value, tb) = sys.exc_info() |
332 | 332 | ||
@@ -349,7 +349,7 @@ def better_exec(code, context, text, realfile): | |||
349 | raise | 349 | raise |
350 | 350 | ||
351 | def simple_exec(code, context): | 351 | def simple_exec(code, context): |
352 | exec code in _context, context | 352 | exec(code, _context, context) |
353 | 353 | ||
354 | def better_eval(source, locals): | 354 | def better_eval(source, locals): |
355 | return eval(source, _context, locals) | 355 | return eval(source, _context, locals) |