X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=AppPkg%2FApplications%2FPython%2FPython-2.7.2%2FLib%2Flib2to3%2Ffixes%2Ffix_long.py;fp=AppPkg%2FApplications%2FPython%2FPython-2.7.2%2FLib%2Flib2to3%2Ffixes%2Ffix_long.py;h=0869b65656c34ccab035e8b403a384268004b2df;hb=4710c53dcad1ebf3755f3efb9e80ac24bd72a9b2;hp=0000000000000000000000000000000000000000;hpb=cbc6b5e54599c7391ece99ad3c5313f4dd4ddda6;p=mirror_edk2.git diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_long.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_long.py new file mode 100644 index 0000000000..0869b65656 --- /dev/null +++ b/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_long.py @@ -0,0 +1,19 @@ +# Copyright 2006 Google, Inc. All Rights Reserved. +# Licensed to PSF under a Contributor Agreement. + +"""Fixer that turns 'long' into 'int' everywhere. +""" + +# Local imports +from lib2to3 import fixer_base +from lib2to3.fixer_util import is_probably_builtin + + +class FixLong(fixer_base.BaseFix): + BM_compatible = True + PATTERN = "'long'" + + def transform(self, node, results): + if is_probably_builtin(node): + node.value = u"int" + node.changed()