diff options
| author | Christophe Simonis <christophe@taupe> | 2008-12-26 19:45:38 +0100 |
|---|---|---|
| committer | Christophe Simonis <christophe@taupe> | 2008-12-26 19:45:38 +0100 |
| commit | e5f9fa5eb2bf27b545abecfe4e9c13fce9092ebf (patch) | |
| tree | 3035fbe975f3f0f7e7b621a9741b0f57c7e63959 /bin/tools/misc.py | |
| parent | 2bc319d919ca7c2de535017d13c5635f761dbdf4 (diff) | |
[FIX] tools.ustr, like str, must always return a string
lp bug: https://launchpad.net/bugs/311595 fixed
bzr revid: christophe@taupe-20081226184538-lkf5lepssmgctbsz
Diffstat (limited to 'bin/tools/misc.py')
| -rw-r--r-- | bin/tools/misc.py | 4 |
1 files changed, 0 insertions, 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 |
