def hash(mapping, bind, values):
for v in values:<EOL><INDENT>if v is None:<EOL><INDENT>continue<EOL><DEDENT>if not isinstance(v, six.string_types):<EOL><INDENT>v = six.text_type(v)<EOL><DEDENT>yield sha1(v.encode('<STR_LIT:utf-8>')).hexdigest()<EOL><DEDENT>
Generate a sha1 for each of the given values.