Commit 9943e42a authored by Konrad Sztyber's avatar Konrad Sztyber Committed by Tomasz Zawadzki
Browse files

scripts/gdb_macros: fix SyntaxWarning

Since v3.8, Python will complain when "is" or "is not" is used to
compare some literals (for more details, see [1]).  Using regular
equality checks gets rid of the following warning:

SyntaxWarning: "is not" with a literal. Did you mean "!="?

[1] https://docs.python.org/3.8/whatsnew/3.8.html#changes-in-python-behavior



Signed-off-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I631bd79fd7e644b493dbfb0c28c40ce7178e1e4e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19172


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@gmail.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent aab7c20f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -284,7 +284,7 @@ class SpdkThread(SpdkObject):
        s += "IO Channels:\n"
        for io_channel in self.get_io_channels():
            channel_lines = str(io_channel).split('\n')
            s += '\n'.join('\t%s' % line for line in channel_lines if line is not '')
            s += '\n'.join('\t%s' % line for line in channel_lines if line != '')
            s += '\n'
            s += '\t---------------\n'
            s += '\n'