X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FUPT%2FLibrary%2FCommentParsing.py;h=8ee788bd7724e097efb0fbfea980a4ef997bb4c2;hb=5b0671c1e514e534c6d5be9604da33bfc2cd0a24;hp=4713614c4a45dd85e8905481d3fb7c9735b5c8c8;hpb=00eb12a2c768cae3ca136110baacb5a35e9066a8;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/UPT/Library/CommentParsing.py b/BaseTools/Source/Python/UPT/Library/CommentParsing.py index 4713614c4a..8ee788bd77 100644 --- a/BaseTools/Source/Python/UPT/Library/CommentParsing.py +++ b/BaseTools/Source/Python/UPT/Library/CommentParsing.py @@ -217,7 +217,7 @@ def ParsePcdErrorCode (Value = None, ContainerFile = None, LineNum = None): # To delete the tailing 'L' # return hex(ErrorCode)[:-1] - except ValueError, XStr: + except ValueError as XStr: if XStr: pass Logger.Error('Parser',