def convert_field(self, value, conversion):
func = self.CONV_FUNCS.get(conversion)<EOL>if func is not None:<EOL><INDENT>value = getattr(value, func)()<EOL><DEDENT>elif conversion not in ['<STR_LIT:R>']:<EOL><INDENT>return super(StringFormatter, self).convert_field(value, conversion)<EOL><DEDENT>if conversion in ['<STR_LIT:h>', '<STR_LIT:H>', '<STR_LIT:R>']:<EOL><INDENT>value = value.replace('<STR_LIT:->', '<STR_LIT>').replace('<STR_LIT:_>', '<STR_LIT>').replace('<STR_LIT::>', '<STR_LIT>').replace('<STR_LIT:U+0020>', '<STR_LIT>')<EOL><DEDENT>return value<EOL>
Apply conversions mentioned above.