#NEWLINE# def transform( self , node , results ) : #NEWLINE# #INDENT# if ( 'name' in results ) : #NEWLINE# #INDENT# name = results [ 'name' ] #NEWLINE# name . replace ( Name ( 'getcwdu' , prefix = name . prefix ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'bad' in results ) : #NEWLINE# #INDENT# self . cannot_convert ( node , 'import os, use os.getcwd() instead.' ) #NEWLINE# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'For some reason, the pattern matcher failed.' )