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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue