[gobject-introspection] Revert "block can be None, fixup last commit"
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Revert "block can be None, fixup last commit"
- Date: Wed, 6 Oct 2010 14:27:13 +0000 (UTC)
commit 57213017a4e3c79d8f690097c67b403690c39def
Author: Johan Dahlin <johan gnome org>
Date: Wed Oct 6 11:26:33 2010 -0300
Revert "block can be None, fixup last commit"
This reverts commit 754e5462f6dfbe3793eb959abf3dbfa7d2fe6435.
giscanner/maintransformer.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index a55fdf4..9053abf 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -411,10 +411,9 @@ usage is void (*_gtk_reserved1)(void);"""
"Unknown container %r for element-type annotation" % (node.type, ))
def _apply_annotations_enum(self, node, block):
- if block:
- enum_type = block.options.get(OPT_TYPE)
- if enum_type and enum_type.one() == 'bitfield':
- node.__class__ = ast.Bitfield
+ enum_type = block.options.get(OPT_TYPE)
+ if enum_type and enum_type.one() == 'bitfield':
+ node.__class__ = ast.Bitfield
self._apply_annotations_annotated(node, block)
def _get_transfer_default_param(self, parent, node):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]