From 9f09600ff18aec276f95b5dc8b763dff80301021 Mon Sep 17 00:00:00 2001 From: calvin Date: Mon, 25 Oct 2004 21:47:03 +0000 Subject: [PATCH] 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 --- linkcheck/strformat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkcheck/strformat.py b/linkcheck/strformat.py index 0316c1f9..3feeb489 100644 --- a/linkcheck/strformat.py +++ b/linkcheck/strformat.py @@ -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 ("\"'"):