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
8from lib2to3 import fixer_base
9from lib2to3.fixer_util import is_probably_builtin
10
11
12class 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()
20