diff options
author | Frazer Clews <frazer.clews@codethink.co.uk> | 2020-01-16 17:11:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-19 13:30:58 +0000 |
commit | b809a6812aa15a8a9af97bc382cc4b19571e6bfc (patch) | |
tree | 2558aa5cbbf8807b56968fdd1a2850a65aa897b7 /lib/bb/data.py | |
parent | 4367692a932ac135c5aa4f9f2a4e4f0150f76697 (diff) | |
download | bitbake-b809a6812aa15a8a9af97bc382cc4b19571e6bfc.tar.gz |
lib: amend code to use proper singleton comparisons where possible
amend the code to handle singleton comparisons properly so it only checks
if they only refer to the same object or not, and not bother
comparing the values.
Signed-off-by: Frazer Clews <frazer.clews@codethink.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data.py')
-rw-r--r-- | lib/bb/data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py index 0d75d0c1a..6dc02172c 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -79,7 +79,7 @@ def expand(s, d, varname = None): return d.expand(s, varname) def expandKeys(alterdata, readdata = None): - if readdata == None: + if readdata is None: readdata = alterdata todolist = {} |