#NEWLINE# def _split_unquote( s , separator = '=' ) : #NEWLINE# #INDENT# 'Splits a string considering quotes and removing them in the result.\n\n    e.g. _split_unquote(\'a="b=d"\') -> [\'a\', \'b=d\']\n    ' #NEWLINE# lex = shlex . shlex ( s , posix = True ) #NEWLINE# lex . commenters = '' #NEWLINE# lex . whitespace = separator #NEWLINE# lex . whitespace_split = True #NEWLINE# return list ( lex )