* [PATCH] utils: Drop datastore function inspection during exception
@ 2016-02-09 15:09 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-02-09 15:09 UTC (permalink / raw)
To: bitbake-devel
When we use functions from the data store, they now have correct line number
and filename information. This function would attempt to correct line numbers
which doesn't need correcting, leading to misleading messages to the user.
Therefore remove this code as being obsoleted.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 9730b51..3f33e84 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -363,15 +363,6 @@ def _print_exception(t, value, tb, realfile, text, context):
error.extend(_print_trace(text, tbextract[level+1][1]))
except:
error.append(tbformat[level+1])
- elif "d" in context and tbextract[level+1][2]:
- # Try and find the code in the datastore based on the functionname
- d = context["d"]
- functionname = tbextract[level+1][2]
- text = d.getVar(functionname, True)
- if text:
- error.extend(_print_trace(text.split('\n'), tbextract[level+1][1]))
- else:
- error.append(tbformat[level+1])
else:
error.append(tbformat[level+1])
nexttb = tb.tb_next
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-09 15:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-09 15:09 [PATCH] utils: Drop datastore function inspection during exception Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.