if len(Lang) != 3:\r
try:\r
FileIn = codecs.open(File.Path, mode='rb', encoding='utf_8').readlines()\r
- except UnicodeError, Xstr:\r
+ except UnicodeError as Xstr:\r
FileIn = codecs.open(File.Path, mode='rb', encoding='utf_16').readlines()\r
- except UnicodeError, Xstr:\r
+ except UnicodeError as Xstr:\r
FileIn = codecs.open(File.Path, mode='rb', encoding='utf_16_le').readlines()\r
except:\r
EdkLogger.Error("Unicode File Parser", \r
\r
try:\r
FileIn = codecs.open(File.Path, mode='rb', encoding='utf_8').readlines()\r
- except UnicodeError, Xstr:\r
+ except UnicodeError as Xstr:\r
FileIn = codecs.open(File.Path, mode='rb', encoding='utf_16').readlines()\r
except UnicodeError:\r
FileIn = codecs.open(File.Path, mode='rb', encoding='utf_16_le').readlines()\r
ExtraData=FilaPath)\r
try:\r
FileIn = codecs.open(FilaPath, mode='rb', encoding='utf_8').readlines()\r
- except UnicodeError, Xstr:\r
+ except UnicodeError as Xstr:\r
FileIn = codecs.open(FilaPath, mode='rb', encoding='utf_16').readlines()\r
except UnicodeError:\r
FileIn = codecs.open(FilaPath, mode='rb', encoding='utf_16_le').readlines()\r