From d7d0f5764aa1bcb7bc6049e18b6a09a57c514ee8 Mon Sep 17 00:00:00 2001 From: CensoredUsername Date: Tue, 16 Dec 2014 18:07:59 +0100 Subject: [PATCH] bugfix FakeClass equality method --- decompiler/magic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decompiler/magic.py b/decompiler/magic.py index 209a681c..5df5089a 100644 --- a/decompiler/magic.py +++ b/decompiler/magic.py @@ -92,7 +92,7 @@ def __eq__(self, other): if not hasattr(other, "__name__"): return False if hasattr(other, "__module__"): - return self.__module__ == other.__module and self.__name == other.__name__ + return self.__module__ == other.__module__ and self.__name == other.__name__ else: return self.__module__ + "." + self.__name__ == other.__name__