]> git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_long.py
0869b65656c34ccab035e8b403a384268004b2df
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / lib2to3 / fixes / fix_long.py
1 # Copyright 2006 Google, Inc. All Rights Reserved.
2 # Licensed to PSF under a Contributor Agreement.
3
4 """Fixer that turns 'long' into 'int' everywhere.
5 """
6
7 # Local imports
8 from lib2to3 import fixer_base
9 from lib2to3.fixer_util import is_probably_builtin
10
11
12 class FixLong(fixer_base.BaseFix):
13 BM_compatible = True
14 PATTERN = "'long'"
15
16 def transform(self, node, results):
17 if is_probably_builtin(node):
18 node.value = u"int"
19 node.changed()