Mercurial > cpython-lru_cache-weakref
view Lib/lib2to3/fixes/fix_long.py @ 58765:2ba7677bfa95 legacy-trunk
testCopysign was defined twice in test_math; combine the definitions
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sat, 06 Feb 2010 23:11:25 +0000 |
| parents | 732f72cbaf7d |
| children | 7d1e453b120b |
line wrap: on
line source
# 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): PATTERN = "'long'" def transform(self, node, results): if is_probably_builtin(node): node.value = u"int" node.changed()
