do not coerce to empty string in unquote()

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1863 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2004-10-25 21:47:03 +00:00
parent 384b7f4169
commit 9f09600ff1

View file

@ -27,7 +27,7 @@ import time
def unquote (s):
"""if string s is not empty, strip quotes from s"""
if not s:
return ""
return s
if len(s) < 2:
return s
if s[0] in ("\"'"):