[gobject-introspection] scanner: Don't throw an exception on unresolved types
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: Don't throw an exception on unresolved types
- Date: Thu, 2 Sep 2010 15:21:39 +0000 (UTC)
commit fb9924db74e7db4ef2219003e73f9c31f3d9d503
Author: Colin Walters <walters verbum org>
Date: Thu Sep 2 11:16:20 2010 -0400
scanner: Don't throw an exception on unresolved types
Instead we'll warn in the introspectablepass.
giscanner/transformer.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 690cbab..9b061a3 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -36,9 +36,6 @@ from .sourcescanner import (
CSYMBOL_TYPE_MEMBER, CSYMBOL_TYPE_ELLIPSIS, CSYMBOL_TYPE_CONST,
TYPE_QUALIFIER_CONST)
-class TypeResolutionException(Exception):
- pass
-
_xdg_data_dirs = [x for x in os.environ.get('XDG_DATA_DIRS', '').split(':') \
+ [DATADIR, '/usr/share'] if x]
@@ -800,7 +797,7 @@ in contrast to the other create_type() functions."""
try:
matches = self.split_ctype_namespaces(pointer_stripped)
except ValueError, e:
- raise TypeResolutionException(e)
+ return False
target_giname = None
for namespace, name in matches:
target = namespace.get(name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]