def _escape_argspec(obj, iterable, escape):
 for (key, value) in iterable:
  if (hasattr(value, '__html__') or isinstance(value, string_types)):
   obj[key] = escape(value)
 return obj

def _escape_argspec ( obj , iterable , escape ) : for ( key , value ) in iterable : if ( hasattr ( value , '__html__' ) or isinstance ( value , string_types ) ) : obj [ key ] = escape ( value ) return obj
helper for various string-wrapped functions .