--- /dev/null
+# Copyright 2006 Google, Inc. All Rights Reserved.\r
+# Licensed to PSF under a Contributor Agreement.\r
+\r
+"""Fixer that turns 'long' into 'int' everywhere.\r
+"""\r
+\r
+# Local imports\r
+from lib2to3 import fixer_base\r
+from lib2to3.fixer_util import is_probably_builtin\r
+\r
+\r
+class FixLong(fixer_base.BaseFix):\r
+ BM_compatible = True\r
+ PATTERN = "'long'"\r
+\r
+ def transform(self, node, results):\r
+ if is_probably_builtin(node):\r
+ node.value = u"int"\r
+ node.changed()\r