kifield/common.py
def quote(s):
    """
    Returns a quoted version of string 's' if that's not already the case
    """

    if s is None:
        return s

    rx = r"^['\"](.*)['\"]$"

    if re.match(rx, s) is not None:
        return s
    else:
        return '"{}"'.format(s)

    Returns a quoted version of string 's' if that's not already the case
    
Returns a quoted version of string 's' if that's not already the case
Returns a quoted version of string ' s ' if that ' s not already the case
def quote(s):
    if s is None:
        return s
    rx = r"^['\"](.*)['\"]$"
    if re.match(rx, s) is not None:
        return s
    else:
        return '"{}"'.format(s)
def quote ( s ) : if s is None : return s rx = r"^['\"](.*)['\"]$" if re . match ( rx , s ) is not None : return s else : return '"{}"' . format ( s )
Returns a quoted version of string 's' if that's not already the case
Returns a quoted version of string ' s ' if that ' s not already the case
"""
    Returns a quoted version of string 's' if that's not already the case
    """
s