This commit is contained in:
Nikos Kouremenos 2005-08-26 12:14:08 +00:00
parent b5c71cd2f2
commit 1a1ec7bfa2
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ def from_xs_boolean_to_python_boolean(value):
def ensure_unicode_string(s): def ensure_unicode_string(s):
# py23 u'abc'.decode('utf-8') raises # py23 u'abc'.decode('utf-8') raises
# python24 does not. is python23 is ooold we can remove this func # python24 does not. is python23 is ooold we can remove this func
if isistance(s, str): if isinstance(s, str):
s = s.decode('utf-8') s = s.decode('utf-8')
return s return s