[attributs] Échec sur l'utilisation de isinstance

This commit is contained in:
Vincent Le Gallic 2014-09-22 02:04:14 +02:00
parent 7ed1874d62
commit b4bfe6cdc4

View file

@ -573,7 +573,7 @@ class generalizedTimeFormat(Attr):
return int(self._stamp)
def __eq__(self, othertime):
if isinstance(self, othertime):
if isinstance(othertime, generalizedTimeFormat):
return self._stamp == othertime._stamp
else:
resource = generalizedTimeFormat(othertime, conn=None, Parent=None)