fixes issue #41 since unicode kwargs is an feature of python 2.6.5 and above.
This commit is contained in:
parent
3b4df4615a
commit
eecc6188a7
@ -421,7 +421,7 @@ class BaseDocument(object):
|
||||
# class if unavailable
|
||||
class_name = son.get(u'_cls', cls._class_name)
|
||||
|
||||
data = dict((unicode(key), value) for key, value in son.items())
|
||||
data = dict((str(key), value) for key, value in son.items())
|
||||
|
||||
if '_types' in data:
|
||||
del data['_types']
|
||||
|
Loading…
x
Reference in New Issue
Block a user