def setPyFlakesFilter(func):
    """
	Set a filter for PyFlake warning messages. This filter should be a function
	that takes a single message, and returns False if the message should be
	ignored (True otherwise.)

	Argument:
	func	--	The filter function.
	"""
    global _filter
    _filter = func
