#NEWLINE# def _normalizeModuleFilename( filename ) : #NEWLINE# #INDENT# if ( python_version >= 300 ) : #NEWLINE# #INDENT# filename = filename . replace ( '__pycache__' , '' ) #NEWLINE# suffix = ( '.cpython-%d.pyc' % ( python_version // 10 ) ) #NEWLINE# if filename . endswith ( suffix ) : #NEWLINE# #INDENT# filename = ( filename [ : ( - len ( suffix ) ) ] + '.py' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if filename . endswith ( '.pyc' ) : #NEWLINE# #INDENT# filename = ( filename [ : ( - 3 ) ] + '.py' ) #NEWLINE# #UNINDENT# #UNINDENT# if ( Utils . basename ( filename ) == '__init__.py' ) : #NEWLINE# #INDENT# filename = Utils . dirname ( filename ) #NEWLINE# #UNINDENT# return filename