home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- """Fixer that turns 'long' into 'int' everywhere.
- """
- from import fixer_base
- from fixer_util import Name, Number, is_probably_builtin
-
- class FixLong(fixer_base.BaseFix):
- PATTERN = "'long'"
- static_int = Name('int')
-
- def transform(self, node, results):
- if is_probably_builtin(node):
- new = self.static_int.clone()
- new.set_prefix(node.get_prefix())
- return new
-
-
-