File Explorer

/proc/thread-self/root/proc/thread-self/root/usr/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_ne.py571 B · 24 lines
# Copyright 2006 Google, Inc. All Rights Reserved.# Licensed to PSF under a Contributor Agreement. """Fixer that turns <> into !=.""" # Local importsfrom .. import pytreefrom ..pgen2 import tokenfrom .. import fixer_base  class FixNe(fixer_base.BaseFix):    # This is so simple that we don't need the pattern compiler.     _accept_type = token.NOTEQUAL     def match(self, node):        # Override        return node.value == "<>"     def transform(self, node, results):        new = pytree.Leaf(token.NOTEQUAL, "!=", prefix=node.prefix)        return new