#NEWLINE# def dependency_module( self , yangfile ) : #NEWLINE# #INDENT# '\n        Get dependency module object for given yang\n        ' #NEWLINE# module = os . path . basename ( yangfile ) #NEWLINE# modulename = module . split ( '.yang' ) [ 0 ] #NEWLINE# if ( '@' in modulename ) : #NEWLINE# #INDENT# modulename = modulename . split ( '@' ) [ 0 ] #NEWLINE# #UNINDENT# module = self . modules . get ( modulename , None ) #NEWLINE# return module