#NEWLINE# def get_ref( self , conan_reference ) : #NEWLINE# #INDENT# with fasteners . InterProcessLock ( ( self . _filename + '.lock' ) ) : #NEWLINE# #INDENT# ( remotes , refs ) = self . _load ( ) #NEWLINE# remote_name = refs . get ( str ( conan_reference ) ) #NEWLINE# try : #NEWLINE# #INDENT# return Remote ( remote_name , remotes [ remote_name ] ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return None