summaryrefslogtreecommitdiff
path: root/python/skytools/quoting.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/skytools/quoting.py')
-rw-r--r--python/skytools/quoting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/skytools/quoting.py b/python/skytools/quoting.py
index 1a144867..f4dba12c 100644
--- a/python/skytools/quoting.py
+++ b/python/skytools/quoting.py
@@ -142,7 +142,7 @@ def unquote_ident(val):
>>> unquote_ident('"Wei "" rd"')
'Wei " rd'
"""
- if val[0] == '"' and val[-1] == '"':
+ if len(val) > 1 and val[0] == '"' and val[-1] == '"':
return val[1:-1].replace('""', '"')
if val.find('"') > 0:
raise Exception('unsupported syntax')