This commit is contained in:
ton
2023-10-05 01:58:42 +07:00
parent 0642343758
commit 6b7a8a3482
5452 changed files with 3 additions and 919217 deletions

View File

@@ -1,19 +0,0 @@
"""
Fixer that changes os.getcwdu() to os.getcwd().
"""
# Author: Victor Stinner
# Local imports
from .. import fixer_base
from ..fixer_util import Name
class FixGetcwdu(fixer_base.BaseFix):
BM_compatible = True
PATTERN = """
power< 'os' trailer< dot='.' name='getcwdu' > any* >
"""
def transform(self, node, results):
name = results["name"]
name.replace(Name("getcwd", prefix=name.prefix))