[gi-docgen: 1/2] correct comparing name to itself in Type class




commit a1a32f44b98cae8c4274bcb2dcb51fd08e01a2fe
Author: aeldemery <aeldemery de gmail com>
Date:   Mon Jul 12 11:41:40 2021 +0000

    correct comparing name to itself in Type class

 gidocgen/gir/ast.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gidocgen/gir/ast.py b/gidocgen/gir/ast.py
index e3a86ad..8fa4993 100644
--- a/gidocgen/gir/ast.py
+++ b/gidocgen/gir/ast.py
@@ -169,7 +169,7 @@ class Type(GIRElement):
     def __eq__(self, other):
         if isinstance(other, Type):
             if self.namespace is not None:
-                return self.namespace == other.namespace and self.name == self.name
+                return self.namespace == other.namespace and self.name == other.name
             elif self.ctype is not None:
                 return self.name == other.name and self.ctype == other.ctype
             else:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]