#NEWLINE# def fix_imports( sourceCode , filename , sourceHashDot , toplevel ) : #NEWLINE# #INDENT# tree = ast . parse ( sourceCode , filename ) #NEWLINE# fixTree = ImportRePackage ( sourceHashDot , toplevel ) . visit ( tree ) #NEWLINE# return compile ( fixTree , sourceCode , 'exec' )