diff options
author | Javi Merino <javi.merino@arm.com> | 2016-01-27 18:14:59 +0000 |
---|---|---|
committer | Javi Merino <javi.merino@arm.com> | 2016-01-27 18:14:59 +0000 |
commit | 4bb9e40eead9eeedaf0202e1d6739854c7010396 (patch) | |
tree | 1285e5c5ae00ccf8e6c603f05ddeefe6f2ecd279 | |
parent | 7881a53f3898b121e04de245a80f24976ae198b6 (diff) | |
download | bart-4bb9e40eead9eeedaf0202e1d6739854c7010396.tar.gz |
common: make sure that the trace inherits from BareTrace, not FTrace
trappy now has a BareTrace class of which FTrace is one instance of. As
all that bart needs is the interface that BareTrace provides, let bart
check that the provided trace is an instance of it.
-rw-r--r-- | bart/common/Utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bart/common/Utils.py b/bart/common/Utils.py index fdfd1e0..0240c23 100644 --- a/bart/common/Utils.py +++ b/bart/common/Utils.py @@ -42,7 +42,7 @@ def init_ftrace(trace): if isinstance(trace, basestring): return trappy.FTrace(trace) - elif isinstance(trace, trappy.FTrace): + elif isinstance(trace, trappy.BareTrace): return trace raise ValueError("Invalid trace Object") |