def format_value(self, val):
if isinstance(val, six.text_type):<EOL><INDENT>return self.format_string(val)<EOL><DEDENT>else:<EOL><INDENT>return six.text_type(val)<EOL><DEDENT>
Helper function to format a value.