summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Common/FdfParserLite.py
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2015-12-01 04:22:16 +0000
committeryzhu52 <yzhu52@Edk2>2015-12-01 04:22:16 +0000
commit47fea6afd74af76c7e2a2b03d319b7ac035ac26a (patch)
tree348d137b6d5f3f8c4e654ace654d3893f3408f68 /BaseTools/Source/Python/Common/FdfParserLite.py
parent9913dce8aeb8c154ccea23be0835b2c50a8613b4 (diff)
downloadedk2-platforms-47fea6afd74af76c7e2a2b03d319b7ac035ac26a.tar.xz
BaseTools: Clean some coding style issues
This patch clean some coding style issues, majorly for space character. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19080 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Source/Python/Common/FdfParserLite.py')
-rw-r--r--BaseTools/Source/Python/Common/FdfParserLite.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/BaseTools/Source/Python/Common/FdfParserLite.py b/BaseTools/Source/Python/Common/FdfParserLite.py
index a0ee249748..a8cce26120 100644
--- a/BaseTools/Source/Python/Common/FdfParserLite.py
+++ b/BaseTools/Source/Python/Common/FdfParserLite.py
@@ -69,8 +69,8 @@ class Warning (Exception):
# @param File The FDF name
# @param Line The Line number that error occurs
#
- def __init__(self, Str, File = None, Line = None):
-
+ def __init__(self, Str, File=None, Line=None):
+
FileLineTuple = GetRealFileLine(File, Line)
self.FileName = FileLineTuple[0]
self.LineNumber = FileLineTuple[1]
@@ -359,8 +359,8 @@ class FdfParser(object):
else:
raise Warning("Macro not complete At Line ", self.FileName, self.CurrentLineNumber)
return Str
-
- def __ReplaceFragment(self, StartPos, EndPos, Value = ' '):
+
+ def __ReplaceFragment(self, StartPos, EndPos, Value=' '):
if StartPos[0] == EndPos[0]:
Offset = StartPos[1]
while Offset <= EndPos[1]: