fix from code review regarding py2py3 compat
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import weakref
|
||||
|
||||
from bson import DBRef
|
||||
from future.utils import listitems
|
||||
import six
|
||||
from six import iteritems
|
||||
|
||||
@@ -422,10 +423,10 @@ class StrictDict(object):
|
||||
return len(list(iteritems(self)))
|
||||
|
||||
def __eq__(self, other):
|
||||
return list(self.items()) == list(other.items())
|
||||
return listitems(self) == listitems(other)
|
||||
|
||||
def __ne__(self, other):
|
||||
return list(self.items()) != list(other.items())
|
||||
return not(self == other)
|
||||
|
||||
@classmethod
|
||||
def create(cls, allowed_keys):
|
||||
|
||||
Reference in New Issue
Block a user