mirror of
https://github.com/utmapp/edk2.git
synced 2026-12-01 22:13:30 -10:00
Per PEP237(*), 'long' is unified with 'int' and removed from python3. * To make the script compatible with both python2 and python3, 'type(0L)' is replaced with 'type(sys.maxsize + 1)'. In python2, the number is 'long', while it's 'int' in python3. We can remove the workaround after moving to python3 completely. * long() is replaced with int() since int() returns a long when need. (*) https://www.python.org/dev/peps/pep-0237/ Contributed-under: TianoCore Contribution Agreement 1.1 Cc: Yonghong Zhu <[email protected]> Cc: Liming Gao <[email protected]> Signed-off-by: Gary Lin <[email protected]> Reviewed-by: Yonghong Zhu <[email protected]>