Is there a way to convert a single quoted string to a triple quoted string? For example, given: ''' abc %d xyz ''' the result of ''' abc %d xyz''' % 10 is: ' abc 10 xyz ' which is a single quoted string. I would like to convert the result to a triple-quoted string.