fix _proper_unicode

This commit is contained in:
Oskar Hahn 2012-11-26 15:48:23 +01:00
parent bdfb714013
commit 4dfd4ac67f
1 changed files with 2 additions and 4 deletions

View File

@ -142,12 +142,10 @@ def ajax_request(data):
def _propper_unicode(text):
res = ''
if not isinstance(text, unicode):
res = u"%s" % text.decode('UTF-8')
return u"%s" % text.decode('UTF-8')
else:
res = text
return res
return text
def decodedict(dict):