audk/BaseTools/Scripts
Leif Lindholm f56d52c7f5 BaseTools: explicitly import email.header PatchCheck.py
On Debian 10 (Buster), when running PatchCheck.py with python2, a
backtrace is printed, starting from:

  File "../edk2/BaseTools/Scripts/PatchCheck.py", line 595,
   in find_patch_pieces
    parts = email.header.decode_header(pmail.get('subject'))
  AttributeError: 'module' object has no attribute 'header'

When using python3, this backtrace does not appear.

Explicitly importing email.header resolves this for python2 and does not
appear to cause any issues with python3.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Leif Lindholm <leif@nuviainc.com>

Reviewed-by: Bob Feng <bob.c.feng@intel.com>
2020-07-03 00:18:50 +00:00
..
PackageDocumentTools BaseTools: Fix various typos 2019-07-08 08:59:29 +08:00
BinToPcd.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
ConvertFceToStructurePcd.py BaseTools: correct line endings for ConvertFce Python script 2019-10-04 11:18:22 +01:00
ConvertMasmToNasm.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
ConvertUni.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
DetectNotUsedItem.py BaseTools:Add DetectNotUsedItem.py to Edk2\BaseTools\Scripts 2019-06-25 09:23:48 +08:00
FormatDosFiles.py BaseTools:"--exclude" don't apply if parameter ends with separator 2019-09-27 08:17:55 +08:00
GccBase.lds BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GetMaintainer.py BaseTools: add handling for 'S:' flag to GetMaintainer.py 2020-05-08 04:37:08 +00:00
GetUtcDateTime.py BaseTools/Scripts: Add GetUtcDateTime script. 2019-08-15 15:49:11 +08:00
MemoryProfileSymbolGen.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
PatchCheck.py BaseTools: explicitly import email.header PatchCheck.py 2020-07-03 00:18:50 +00:00
RunMakefile.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
RunMakefileSample.mak BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Rvct-Align4K.sct BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Rvct-Align32.sct BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
SetVisualStudio.bat BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
SetupGit.py BaseTools: add repo name option to SetupGit.py 2020-05-08 03:59:29 +00:00
ShowEnvironment.bat BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
SmiHandlerProfileSymbolGen.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
UpdateBuildVersions.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00