From f2a0b60e797311ada840075541b5d7568e839668 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 28 Nov 2010 17:47:38 +0100 Subject: [PATCH] Fix unicode bug --- src/utils/str.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/str.py b/src/utils/str.py index 033547c2c..2997bfac6 100644 --- a/src/utils/str.py +++ b/src/utils/str.py @@ -61,6 +61,7 @@ def rsplit(s, sep=None, maxsplit=-1): def normalizeWhitespace(s, removeNewline=True): """Normalizes the whitespace in a string; \s+ becomes one space.""" + s = str(s) if removeNewline: s = str.replace(s, '\n', '') while ' ' in s: