diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-08 13:36:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-09 13:04:30 +0100 |
commit | 9a6c5fe1f8677aaa752534aca175bb09675ee36d (patch) | |
tree | 7508040ca3653d46a2d726d810337a11c3a6a38b | |
parent | 2aad7b988ef1feabf3c876060998d818ed01fb97 (diff) | |
download | poky-9a6c5fe1f8677aaa752534aca175bb09675ee36d.tar.gz |
bitbake: bb/exceptions: Drop obsolete 2.6 code
In python 3 we should always have named tuples in this context. Drop
the obsolete exception handling.
(Bitbake rev: c11c9f18dad1cf4cb21e3bd873338ecc95652062)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/exceptions.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/bitbake/lib/bb/exceptions.py b/bitbake/lib/bb/exceptions.py index 801db9c82f..acf546de1d 100644 --- a/bitbake/lib/bb/exceptions.py +++ b/bitbake/lib/bb/exceptions.py | |||
@@ -38,14 +38,8 @@ def _get_frame_args(frame): | |||
38 | """Get the formatted arguments and class (if available) for a frame""" | 38 | """Get the formatted arguments and class (if available) for a frame""" |
39 | arginfo = inspect.getargvalues(frame) | 39 | arginfo = inspect.getargvalues(frame) |
40 | 40 | ||
41 | try: | 41 | if not arginfo.args: |
42 | if not arginfo.args: | ||
43 | return '', None | 42 | return '', None |
44 | # There have been reports from the field of python 2.6 which doesn't | ||
45 | # return a namedtuple here but simply a tuple so fallback gracefully if | ||
46 | # args isn't present. | ||
47 | except AttributeError: | ||
48 | return '', None | ||
49 | 43 | ||
50 | firstarg = arginfo.args[0] | 44 | firstarg = arginfo.args[0] |
51 | if firstarg == 'self': | 45 | if firstarg == 'self': |