Uname: Linux premium193.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.34 [ PHP INFO ] PHP os: Linux
Server Ip: 192.64.117.120
Your Ip: 216.73.217.88
User: mercnlgf (820) | Group: mercnlgf (812)
Safe Mode: OFF
Disable Function:
NONE

name : fix_raw_input.py
"""Fixer that changes raw_input(...) into input(...)."""
# Author: Andre Roberge

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

class FixRawInput(fixer_base.BaseFix):

    BM_compatible = True
    PATTERN = """
              power< name='raw_input' trailer< '(' [any] ')' > any* >
              """

    def transform(self, node, results):
        name = results["name"]
        name.replace(Name(u"input", prefix=name.prefix))
© 2026 MAINHACK