]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/AutoGen/GenVar.py
BaseTools: Cleanup unneeded code
[mirror_edk2.git] / BaseTools / Source / Python / AutoGen / GenVar.py
index 2eab278d68763f336f3ec24c067a54cb0569da6a..3675be8de994fac0c7bf26714d8fdb7207c8db1f 100644 (file)
@@ -75,7 +75,7 @@ class VariableMgr(object):
                     data = value_list[0]\r
                     value_list = []\r
                     for data_byte in pack(data_flag,int(data,16) if data.upper().startswith('0X') else int(data)):\r
-                        value_list += [hex(unpack("B",data_byte)[0])]\r
+                        value_list.append(hex(unpack("B",data_byte)[0]))\r
                 newvalue[int(item.var_offset,16) if item.var_offset.upper().startswith("0X") else int(item.var_offset)] = value_list\r
             try:\r
                 newvaluestr = "{" + ",".join(VariableMgr.assemble_variable(newvalue)) +"}"\r