summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-15 18:07:13 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-25 21:26:15 +0000
commit49bc773cd0852dcdf3c3796a52bce7e3fef28217 (patch)
treed96b649d5176a0504a9135f3dff2b281a208cff9 /bitbake/lib
parent0d6c922af9c2d6f5e6f3f94b4c6875f2a4854646 (diff)
downloadpoky-49bc773cd0852dcdf3c3796a52bce7e3fef28217.tar.gz
bitbake: fetch2/clearcase: Fix warnings from python 3.8
bitbake/lib/bb/fetch2/clearcase.py:148: SyntaxWarning: "is" with a literal. Did you mean "=="? if command is 'mkview': bitbake/lib/bb/fetch2/clearcase.py:155: SyntaxWarning: "is" with a literal. Did you mean "=="? elif command is 'rmview': bitbake/lib/bb/fetch2/clearcase.py:159: SyntaxWarning: "is" with a literal. Did you mean "=="? elif command is 'setcs': Python 3.8 is quite correct and we so mean "==" here, fix it to avoid the warnings. (Bitbake rev: 2cccc14304855cb55f339e465f6ba6ed0c69a7ab) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch2/clearcase.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/clearcase.py b/bitbake/lib/bb/fetch2/clearcase.py
index 3dd93ad6b1..e2934ef9fc 100644
--- a/bitbake/lib/bb/fetch2/clearcase.py
+++ b/bitbake/lib/bb/fetch2/clearcase.py
@@ -145,18 +145,18 @@ class ClearCase(FetchMethod):
145 145
146 basecmd = "%s %s" % (ud.basecmd, command) 146 basecmd = "%s %s" % (ud.basecmd, command)
147 147
148 if command is 'mkview': 148 if command == 'mkview':
149 if not "rcleartool" in ud.basecmd: 149 if not "rcleartool" in ud.basecmd:
150 # Cleartool needs a -snapshot view 150 # Cleartool needs a -snapshot view
151 options.append("-snapshot") 151 options.append("-snapshot")
152 options.append("-tag %s" % ud.viewname) 152 options.append("-tag %s" % ud.viewname)
153 options.append(ud.viewdir) 153 options.append(ud.viewdir)
154 154
155 elif command is 'rmview': 155 elif command == 'rmview':
156 options.append("-force") 156 options.append("-force")
157 options.append("%s" % ud.viewdir) 157 options.append("%s" % ud.viewdir)
158 158
159 elif command is 'setcs': 159 elif command == 'setcs':
160 options.append("-overwrite") 160 options.append("-overwrite")
161 options.append(ud.configspecfile) 161 options.append(ud.configspecfile)
162 162