def clean( cls, value ):
		"""Return only those characters in value in ACCEPTED_CHARACTERS"""
		result = []
		for x in value:
			if x in cls.ACCEPTED_CHARACTERS:
				result.append( x )
			else:
				result.append( cls.REPLACE_CHARACTER )
		return u"".join( result )
dataset/ETHPy150Open correl/Transmission-XBMC/resources/lib/basictypes/rstring.py/RestrictedString.clean/original