Spade
Mini Shell
| Directory:~$ /proc/self/root/usr/lib/python2.7/site-packages/libpasteurize/fixes/ |
| [Home] [System Details] [Kill Me] |
�
,�]c@sCdZddlmZddlmZdejfd��YZdS(um
Fixer for os.getcwd() -> os.getcwdu().
Also warns about "from os import getcwd", suggesting the above
form.
i����(t
fixer_base(tNamet FixGetcwdcBseZdZd�ZRS(u�
power< 'os' trailer< dot='.'
name='getcwd' > any* >
|
import_from< 'from' 'os'
'import' bad='getcwd' >
cCsed|kr5|d}|jtdd|j��n,d|krU|j|d�dStd��dS(Nunameugetcwdutprefixubadu#import
os, use os.getcwd() instead.u,For some reason, the pattern matcher
failed.(treplaceRRtcannot_convertt
ValueError(tselftnodetresultstname((sB/usr/lib/python2.7/site-packages/libpasteurize/fixes/fix_getcwd.pyt transforms
(t__name__t
__module__tPATTERNR(((sB/usr/lib/python2.7/site-packages/libpasteurize/fixes/fix_getcwd.pyR sN(t__doc__tlib2to3Rtlib2to3.fixer_utilRtBaseFixR(((sB/usr/lib/python2.7/site-packages/libpasteurize/fixes/fix_getcwd.pyt<module>s