gobject-introspection r562 - trunk/giscanner



Author: walters
Date: Sun Aug 31 22:16:07 2008
New Revision: 562
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=562&view=rev

Log:
Quiet info prints for now.

	* giscanner/glibtransformer.py: Quiet info
	prints for now.


Modified:
   trunk/giscanner/glibtransformer.py

Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py	(original)
+++ trunk/giscanner/glibtransformer.py	Sun Aug 31 22:16:07 2008
@@ -322,8 +322,8 @@
             derefed = self._transformer.follow_aliases(target_arg.type.name,
                                                        self._names)
             if derefed in type_names:
-                print "NOTE: Rejecting constructor returning basic: %r" \
-                    % (func.symbol, )
+                #print "NOTE: Rejecting constructor returning basic: %r" \
+                #    % (func.symbol, )
                 return None
             prefix = func.symbol[:new_idx]
 
@@ -350,19 +350,19 @@
                     klass = self._uscore_type_names.get(key)
                     if valid_matching_klass(klass):
                         break
-        # Enums can't have ctors or methods
         if klass is None:
-            print "NOTE: No valid matching class for likely "+\
-                "method or constructor: %r" % (func.symbol, )
-            return
+            #print "NOTE: No valid matching class for likely "+\
+            #    "method or constructor: %r" % (func.symbol, )
+            return None
+        # Enums can't have ctors or methods
         if isinstance(klass, (GLibEnum, GLibFlags)):
             return None
 
         if not is_method:
             # Interfaces can't have constructors, punt to global scope
             if isinstance(klass, GLibInterface):
-                print "NOTE: Rejecting constructor for"+\
-                    " interface type: %r" % (func.symbol, )
+                #print "NOTE: Rejecting constructor for"+\
+                #    " interface type: %r" % (func.symbol, )
                 return None
             # TODO - check that the return type is a subclass of the
             # class from the prefix



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