#NEWLINE# def canread( self , key ) : #NEWLINE# #INDENT# if set . allaccess : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# set = self . keymap . get ( key , None ) #NEWLINE# if ( set and ( 'read' in set ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False