From e5f9fa5eb2bf27b545abecfe4e9c13fce9092ebf Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 26 Dec 2008 19:45:38 +0100 Subject: [PATCH] [FIX] tools.ustr, like str, must always return a string lp bug: https://launchpad.net/bugs/311595 fixed bzr revid: christophe@taupe-20081226184538-lkf5lepssmgctbsz --- bin/tools/misc.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bin/tools/misc.py b/bin/tools/misc.py index 933274ddf0c..a9157541a99 100644 --- a/bin/tools/misc.py +++ b/bin/tools/misc.py @@ -649,10 +649,6 @@ def ustr(value): @return: unicode string """ - if (value is None) or (value is False): - return value - if not value: - return u'' if isinstance(value, unicode): return value