Revision: 451
Author: allenb
Date: 2006-08-23 16:30:51 -0700 (Wed, 23 Aug 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=451&view=rev
Log Message:
-----------
I *think* this fixes a bug.
As far as I can tell with Python 2.4 atleast bool([False,True]) is still true so the logic of this test was not working.
Please review this commit to verify that I have fixed something though.
Modified Paths:
--------------
pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py
Modified: pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py
===================================================================
--- pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py 2006-08-23 23:29:13 UTC (rev 450)
+++ pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py 2006-08-23 23:30:51 UTC (rev 451)
@@ -65,7 +65,7 @@
def __ensure_attribute( self, name ):
invalid_decls = filter( lambda d: not hasattr( d, name ), self.decls )
- if invalid_decls:
+ if False in invalid_decls:
raise RuntimeError( "Not all declarations have '%s' attribute." % name )
def __setattr__( self, name, value ):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|