[gi-docgen: 1/2] try to infer namespace of girelement only if nil
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gi-docgen: 1/2] try to infer namespace of girelement only if nil
- Date: Tue, 20 Jul 2021 09:51:52 +0000 (UTC)
commit b34618110915a41765e251fdfb42447b9d74d5f3
Author: aeldemery <aeldemery de gmail com>
Date: Fri Jul 16 22:28:42 2021 +0000
try to infer namespace of girelement only if nil
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..c609cb6 100644
--- a/gidocgen/gir/ast.py
+++ b/gidocgen/gir/ast.py
@@ -88,7 +88,7 @@ class GIRElement:
def __init__(self, name: T.Optional[str] = None, namespace: T.Optional[str] = None):
self.name = name
self.namespace = namespace
- if self.namespace is not None:
+ if self.namespace is None:
if self.name is not None and '.' in self.name:
self.namespace = self.name.split('.')[0]
self.info = Info()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]