c2a: Extend unquote() to single quotes
Bug: 243662244 Test: - Change-Id: I4de409b3135369425f8fa934f490e701505cd55d
This commit is contained in:
@@ -182,7 +182,7 @@ def test_base_name(path):
|
|||||||
|
|
||||||
|
|
||||||
def unquote(s): # remove quotes around str
|
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[1:-1]
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user