def remove_chars(value, repl):
 if (type(repl) is unicode):
  for badc in list(repl):
   value = value.replace(badc, '')
  return value
 elif (type(value) is unicode):
  return value.translate(dict(((ord(s), None) for s in repl)))
 elif (type(value) is str):
  return value.translate(string.maketrans('', ''), repl)

def remove_chars ( value , repl ) : if ( type ( repl ) is unicode ) : for badc in list ( repl ) : value = value . replace ( badc , '' ) return value elif ( type ( value ) is unicode ) : return value . translate ( dict ( ( ( ord ( s ) , None ) for s in repl ) ) ) elif ( type ( value ) is str ) : return value . translate ( string . maketrans ( '' , '' ) , repl )
removes all chars in repl from string .