mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-14 11:21:02 +00:00
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:
parent
384b7f4169
commit
9f09600ff1
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ("\"'"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue