File Explorer

/proc/thread-self/root/proc/thread-self/root/lib64/python3.9/lib2to3/fixes

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

fix_raw_input.py454 B · 18 lines
"""Fixer that changes raw_input(...) into input(...)."""# Author: Andre Roberge # Local importsfrom .. import fixer_basefrom ..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("input", prefix=name.prefix))