REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2304
To avoid SyntaxWarning with Python 3.8, change the 'is' operator
by the conventional '==' comparator.
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
abs_dsc_path = os.path.join(abs_pkg_path, pkgconfig["DscPath"].strip())\r
wsr_dsc_path = Edk2pathObj.GetEdk2RelativePathFromAbsolutePath(abs_dsc_path)\r
\r
- if abs_dsc_path is None or wsr_dsc_path is "" or not os.path.isfile(abs_dsc_path):\r
+ if abs_dsc_path is None or wsr_dsc_path == "" or not os.path.isfile(abs_dsc_path):\r
tc.SetSkipped()\r
tc.LogStdError("Package Dsc not found")\r
return 0\r
abs_dec_path = self.__GetPkgDec(abs_pkg_path)\r
wsr_dec_path = Edk2pathObj.GetEdk2RelativePathFromAbsolutePath(abs_dec_path)\r
\r
- if abs_dec_path is None or wsr_dec_path is "" or not os.path.isfile(abs_dec_path):\r
+ if abs_dec_path is None or wsr_dec_path == "" or not os.path.isfile(abs_dec_path):\r
tc.SetSkipped()\r
tc.LogStdError("No DEC file {0} in package {1}".format(abs_dec_path, abs_pkg_path))\r
return -1\r