#NEWLINE# def exists( self ) : #NEWLINE# #INDENT# "\n        :return: True if the submodule exists, False otherwise. Please note that\n            a submodule may exist (in the .gitmodules file) even though its module\n            doesn't exist on disk" #NEWLINE# loc = locals ( ) #NEWLINE# for attr in self . _cache_attrs : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if hasattr ( loc , attr ) : #NEWLINE# #INDENT# loc [ attr ] = getattr ( self , attr ) #NEWLINE# #UNINDENT# #UNINDENT# except ( cp . NoSectionError , ValueError ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# self . _clear_cache ( ) #NEWLINE# try : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . path #NEWLINE# return True #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# for attr in self . _cache_attrs : #NEWLINE# #INDENT# if ( attr in loc ) : #NEWLINE# #INDENT# setattr ( self , attr , loc [ attr ] )