#NEWLINE# def search( self , username , reponame ) : #NEWLINE# #INDENT# matches = [ ] #NEWLINE# for k in list ( self . repos . keys ( ) ) : #NEWLINE# #INDENT# if ( ( username is not None ) and ( k [ 0 ] != username ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( ( reponame is not None ) and ( reponame [ 1 ] != reponame ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# matches . append ( k ) #NEWLINE# #UNINDENT# return matches