#NEWLINE# def _rewrite_module_path( self , modname ) : #NEWLINE# #INDENT# self . __assert_not_cleaned_up ( ) #NEWLINE# if ( modname == pieces . base . package ) : #NEWLINE# #INDENT# return self . mod . __name__ #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if modname . startswith ( ( self . base . package + '.' ) ) : #NEWLINE# #INDENT# pieces = modname . split ( '.' ) #NEWLINE# return ( ( self . mod . __name__ + '.' ) + '.' . join ( pieces [ ( self . base . package . count ( '.' ) + 1 ) : ] ) )