From 2280cd191ab9d5a4c36fbce1e00aa63d09f5df2d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 10 Jan 2016 23:15:43 +0100 Subject: [PATCH] Fixes #1654 --- lib/request/connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index eec80328d..d7305637b 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -984,7 +984,7 @@ class Connect(object): if name != "__builtins__" and originals.get(name, "") != value: if isinstance(value, (basestring, int)): found = False - value = unicode(value) + value = getUnicode(value) regex = r"((\A|%s)%s=).+?(%s|\Z)" % (re.escape(delimiter), re.escape(name), re.escape(delimiter)) if re.search(regex, (get or "")):