def _check_limit(self, event):
if self.count(event) > self.max_listeners:<EOL><INDENT>warnings.warn(<EOL>'<STR_LIT>'.format(event),<EOL>ResourceWarning,<EOL>)<EOL><DEDENT>
Check if the listener limit is hit and warn if needed.