]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: replace Sdict with OrderedDict in UPT
authorFeng, Bob C <bob.c.feng@intel.com>
Tue, 19 Feb 2019 15:44:22 +0000 (23:44 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Wed, 20 Feb 2019 05:16:56 +0000 (13:16 +0800)
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1504

V2: import OrderredDict as Sdict in Misc.py instead
updating all the py files.

Sdict class is removed on the commit
174a9d3cc8f74f7a731ac5f16ce6864c8eb359ec
but there are still some py files import it.

This patch is to use collections.OrderedDict to replace Sdict.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
BaseTools/Source/Python/UPT/Library/Misc.py

index e7ee27cc53d571907b96d4277812cce9c4f8e5d4..0967ea53d196e03328f52a0a3beaa1727533786b 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # Common routines used by all tools\r
 #\r
-# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2019, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials are licensed and made available\r
 # under the terms and conditions of the BSD License which accompanies this\r
@@ -32,7 +32,7 @@ from os import linesep
 from os import walk\r
 from os import environ\r
 import re\r
-from collections import OrderedDict\r
+from collections import OrderedDict as Sdict\r
 \r
 import Logger.Log as Logger\r
 from Logger import StringTable as ST\r