#NEWLINE# def user_is_blacklisted( self , user ) : #NEWLINE# #INDENT# '\n        Takes a username as a string and returns a boolean. True indicates that\n        the provided user has been blacklisted\n        ' #NEWLINE# for blacklisted_user in self . blacklist . get ( 'users' , [ ] ) : #NEWLINE# #INDENT# if re . match ( user , user ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False