c2a: Extend unquote() to single quotes

Bug: 243662244
Test: -
Change-Id: I4de409b3135369425f8fa934f490e701505cd55d
This commit is contained in:
Pierre-Clément Tosi
2022-08-24 15:46:54 +01:00
parent 61b8730ec6
commit dde806f72d

View File

@@ -182,7 +182,7 @@ def test_base_name(path):
def unquote(s): # remove quotes around str
if s and len(s) > 1 and s[0] == '"' and s[-1] == '"':
if s and len(s) > 1 and s[0] == s[-1] and s[0] in ('"', "'"):
return s[1:-1]
return s