diff options
Diffstat (limited to 'BaseTools/Scripts/PackageDocumentTools/plugins/EdkPlugins/basemodel/ini.py')
-rw-r--r-- | BaseTools/Scripts/PackageDocumentTools/plugins/EdkPlugins/basemodel/ini.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/BaseTools/Scripts/PackageDocumentTools/plugins/EdkPlugins/basemodel/ini.py b/BaseTools/Scripts/PackageDocumentTools/plugins/EdkPlugins/basemodel/ini.py index d5299e6..6e6f3f4 100644 --- a/BaseTools/Scripts/PackageDocumentTools/plugins/EdkPlugins/basemodel/ini.py +++ b/BaseTools/Scripts/PackageDocumentTools/plugins/EdkPlugins/basemodel/ini.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
+from __future__ import absolute_import
from .message import *
import re
import os
@@ -24,7 +25,7 @@ class BaseINIFile(object): @return: instance of this class
"""
- if len(args) == 0: return object.__new__(cls)
+ if len(args) == 0: return object.__new__(cls, *args, **kwargs)
filename = args[0]
parent = None
if len(args) > 1:
@@ -32,7 +33,7 @@ class BaseINIFile(object): key = os.path.normpath(filename)
if key not in cls._objs.keys():
- cls._objs[key] = object.__new__(cls)
+ cls._objs[key] = object.__new__(cls, *args, **kwargs)
if parent is not None:
cls._objs[key].AddParent(parent)
|