]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_raw_input.py
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / lib2to3 / fixes / fix_raw_input.py
CommitLineData
4710c53d 1"""Fixer that changes raw_input(...) into input(...)."""\r
2# Author: Andre Roberge\r
3\r
4# Local imports\r
5from .. import fixer_base\r
6from ..fixer_util import Name\r
7\r
8class FixRawInput(fixer_base.BaseFix):\r
9\r
10 BM_compatible = True\r
11 PATTERN = """\r
12 power< name='raw_input' trailer< '(' [any] ')' > any* >\r
13 """\r
14\r
15 def transform(self, node, results):\r
16 name = results["name"]\r
17 name.replace(Name(u"input", prefix=name.prefix))\r