From 19a82e151c2b5a5c5a6d42fed0d681931838881b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 14 May 2010 14:03:33 +0000 Subject: [PATCH] minor cleanup --- lib/core/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index ded0ab668..bd1756c79 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1036,8 +1036,7 @@ def sanitizeAsciiString(subject): if not index: return subject else: - retVal = subject[:index] + "".join(subject[i] if ord(subject[i]) < 128 else '?' for i in xrange(index, len(subject))) - return retVal + return subject[:index] + "".join(subject[i] if ord(subject[i]) < 128 else '?' for i in xrange(index, len(subject))) else: return None