audk/BaseTools/Source/Python/Common
Gary Lin 39456d00f3 BaseTools: Unify long and int in Expression.py
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 <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
2018-07-08 15:39:57 +08:00
..
BuildToolError.py BaseTools: introduce !error statement 2018-06-22 13:38:40 +08:00
BuildVersion.py BaseTools: Clear build versions to sync with buildtools/BaseTools 2014-07-25 21:10:33 +00:00
DataType.py BaseTools: Adjust the spaces around commas and colons 2018-06-27 16:33:25 +08:00
Database.py BaseTools: Rename String to StringUtils. 2018-05-28 13:05:00 +08:00
EdkLogger.py BaseTools: Remove equality operator with None 2018-03-30 08:25:13 +08:00
Expression.py BaseTools: Unify long and int in Expression.py 2018-07-08 15:39:57 +08:00
GlobalData.py BaseTools: Move variable out of Global 2018-06-28 08:46:49 +08:00
Identification.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00
LongFilePathOs.py BaseTools: Migrate to the new octal literal 2018-06-27 16:33:27 +08:00
LongFilePathOsPath.py BaseTools: Update Build tool to support multiple workspaces 2015-10-08 09:27:14 +00:00
LongFilePathSupport.py BaseTools/Ecc: Add a checkpoint for invalid UNI file. 2015-06-25 07:50:55 +00:00
Misc.py BaseTools: Move variable out of Global 2018-06-28 08:46:49 +08:00
MultipleWorkspace.py BaseTools: Fix the bug to correctly handle the [BuildOptions] 2016-04-15 08:41:21 +08:00
Parsing.py BaseTools: Rename String to StringUtils. 2018-05-28 13:05:00 +08:00
PyUtility.pyd Sync BaseTool trunk (version r2599) into EDKII BaseTools. 2013-08-23 02:18:16 +00:00
RangeExpression.py BaseTools: Fix old python2 idioms 2018-06-27 16:33:27 +08:00
StringUtils.py BaseTools: Fix old python2 idioms 2018-06-27 16:33:27 +08:00
TargetTxtClassObject.py BaseTools: Refactor python print statements 2018-06-27 16:33:21 +08:00
ToolDefClassObject.py BaseTools: Fix old python2 idioms 2018-06-27 16:33:27 +08:00
VariableAttributes.py BaseTools/Build: Add SDL support 2015-04-10 06:59:47 +00:00
VpdInfoFile.py BaseTools: Fix old python2 idioms 2018-06-27 16:33:27 +08:00
__init__.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00