| commit | dde806f72d96562888865317619a3984a4d64472 | [log] [tgz] |
|---|---|---|
| author | Pierre-Clément Tosi <ptosi@google.com> | Wed Aug 24 15:46:54 2022 +0100 |
| committer | Pierre-Clément Tosi <ptosi@google.com> | Wed Aug 24 16:36:34 2022 +0100 |
| tree | bfabce1f8cfcda54d4476fc126b327de9713f800 | |
| parent | 61b8730ec6eee3e68102f46217559ab7d89ca2b7 [diff] |
c2a: Extend unquote() to single quotes Bug: 243662244 Test: - Change-Id: I4de409b3135369425f8fa934f490e701505cd55d
diff --git a/scripts/cargo2android.py b/scripts/cargo2android.py index 77ddee4..8f2ccc6 100755 --- a/scripts/cargo2android.py +++ b/scripts/cargo2android.py
@@ -182,7 +182,7 @@ 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