From b4bfe6cdc4607a014a739cdf126fd13ba3004366 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Mon, 22 Sep 2014 02:04:14 +0200 Subject: [PATCH] =?UTF-8?q?[attributs]=20=C3=89chec=20sur=20l'utilisation?= =?UTF-8?q?=20de=20isinstance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index 7fb0545..36f1bb6 100644 --- a/attributs.py +++ b/attributs.py @@ -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)