]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/AutoGen/BuildEngine.py
BaseTools: Fix string concatenation
authorPierre Gondois <pierre.gondois@arm.com>
Wed, 1 Jul 2020 14:06:04 +0000 (22:06 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 2 Jul 2020 10:09:17 +0000 (10:09 +0000)
commit0622a7b1b203ad4ab1675533e958792fc1afc12b
tree02be8ad9636d883aa8568d0ac49be2a5c1fbad31
parent0a4aa20e8d446c2f5dd54f3a0a7ec4d52f0ebdb6
BaseTools: Fix string concatenation

Using Python 3.7.2 on win32, when printing a FileBuildRule
instance, the following error occurs:
File "edk2\BaseTools\Source\Python\AutoGen\BuildEngine.py",
line 177, in __str__
  DestString = ", ".join(self.DestFileList)
  TypeError: sequence item 0: expected str instance, PathClass found

This patch converts each PathClass element of the list to a string
instance before concatenating them.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/AutoGen/BuildEngine.py