summaryrefslogtreecommitdiffstats
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-21 23:09:03 +0000
commit75ea6ce72b975fb966f9dafc08384a9109994138 (patch)
tree08cbbaf038120c04ea174dee7f3a09025b76a95d
parent9d2fd91844fe387186b780b5457d0c02bea998e7 (diff)
downloadpoky-75ea6ce72b975fb966f9dafc08384a9109994138.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: 1fab03f6e10eaa13b8a89ce0b2f9fe8ce5157189) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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