symbian-qemu-0.9.1-12/python-win32-2.6.1/lib/lib2to3/fixes/fix_basestring.py
author Simon Howkins <simonh@symbian.org>
Thu, 03 Dec 2009 15:24:11 +0000
changeset 25 1a93ed2e38bd
parent 1 2fb8b9db1c86
permissions -rw-r--r--
Removed REE_PATH option as it's no longer needed.

"""Fixer for basestring -> str."""
# Author: Christian Heimes

# Local imports
from .. import fixer_base
from ..fixer_util import Name

class FixBasestring(fixer_base.BaseFix):

    PATTERN = "'basestring'"

    def transform(self, node, results):
        return Name("str", prefix=node.get_prefix())