]>
git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_getcwdu.py
2 Fixer that changes os.getcwdu() to os.getcwd().
4 # Author: Victor Stinner
7 from .. import fixer_base
8 from ..fixer_util
import Name
10 class FixGetcwdu(fixer_base
.BaseFix
):
14 power< 'os' trailer< dot='.' name='getcwdu' > any* >
17 def transform(self
, node
, results
):
18 name
= results
["name"]
19 name
.replace(Name(u
"getcwd", prefix
=name
.prefix
))