assist/command/__init__.py
def convert_field(self, value, conversion):
        """do any conversion on the resulting object."""
        if conversion is None:
            return value
        if conversion == 's':
            return str(value)
        if conversion == 'r':
            return repr(value)
        if conversion == 'u':
            return value.upper()
        if conversion == 'l':
            return value.lower()
        msg = "Unknown conversion specifier {0!s}".format(conversion)
        raise ValueError(msg)
do any conversion on the resulting object.
do any conversion on the resulting object.
do any conversion on the resulting object .
def convert_field(self, value, conversion):
        if conversion is None:
            return value
        if conversion == 's':
            return str(value)
        if conversion == 'r':
            return repr(value)
        if conversion == 'u':
            return value.upper()
        if conversion == 'l':
            return value.lower()
        msg = "Unknown conversion specifier {0!s}".format(conversion)
        raise ValueError(msg)
def convert_field ( self , value , conversion ) : if conversion is None : return value if conversion == 's' : return str ( value ) if conversion == 'r' : return repr ( value ) if conversion == 'u' : return value . upper ( ) if conversion == 'l' : return value . lower ( ) msg = "Unknown conversion specifier {0!s}" . format ( conversion ) raise ValueError ( msg )
do any conversion on the resulting object.
do any conversion on the resulting object .
"""do any conversion on the resulting object."""
self
value
conversion