summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/config.py
diff options
context:
space:
mode:
authorAnders Montonen <Anders.Montonen@iki.fi>2020-04-27 22:15:26 +0300
committerChris Johns <chrisj@rtems.org>2020-04-28 08:49:05 +1000
commit0c7965c093c16fd88b0cd8bab305b82e10e3f792 (patch)
treed6887c822b7725558b8df1102c269f0f948359f2 /source-builder/sb/config.py
parentdevel/glib: Fix the checksum for the patch (diff)
downloadrtems-source-builder-0c7965c093c16fd88b0cd8bab305b82e10e3f792.tar.bz2
sb: Fix Python literal comparison warnings
Fixes: SyntaxWarning: "is" with a literal. Did you mean "=="? Signed-off-by: Anders Montonen <Anders.Montonen@iki.fi>
Diffstat (limited to 'source-builder/sb/config.py')
-rw-r--r--source-builder/sb/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source-builder/sb/config.py b/source-builder/sb/config.py
index 4856088..afcac84 100644
--- a/source-builder/sb/config.py
+++ b/source-builder/sb/config.py
@@ -338,7 +338,7 @@ class file:
raise error.general(self._name_line_msg(msg))
def _label(self, name):
- if name.startswith('%{') and name[-1] is '}':
+ if name.startswith('%{') and name[-1] == '}':
return name
return '%{' + name.lower() + '}'