diff options
author | Sergei Trofimov <sergei.trofimov@arm.com> | 2017-10-06 13:37:00 +0100 |
---|---|---|
committer | Sergei Trofimov <sergei.trofimov@arm.com> | 2017-10-06 13:38:41 +0100 |
commit | 7e073c1fce9304cdf7b60f507208f15a66939bc0 (patch) | |
tree | 5cbf4af787dda2e56dea86958279ccc80050a522 | |
parent | 98e19ae04862aed915d285952fe17aa652585bb4 (diff) | |
download | devlib-7e073c1fce9304cdf7b60f507208f15a66939bc0.tar.gz |
read_tree_values: more robust parsing.
Skip entries not containing a ":".
-rw-r--r-- | devlib/target.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devlib/target.py b/devlib/target.py index ec24765..6d2a12d 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -620,7 +620,7 @@ class Target(object): check_exit_code=check_exit_code) result = {} for entry in output.strip().split('\n'): - if not entry.strip(): + if ':' not in entry: continue path, value = entry.strip().split(':', 1) result[path] = value |