def strip_quotes(table_name):
 has_quotes = (table_name.startswith('"') and table_name.endswith('"'))
 return (table_name[1:(-1)] if has_quotes else table_name)

def strip_quotes ( table_name ) : has_quotes = ( table_name . startswith ( '"' ) and table_name . endswith ( '"' ) ) return ( table_name [ 1 : ( - 1 ) ] if has_quotes else table_name )
strip quotes of doctests output values: .