Revision: 68
Author: roman_yakovenko
Date: 2006-05-14 00:17:02 -0700 (Sun, 14 May 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=68&view=rev
Log Message:
-----------
replacing assert with RuntimeError
Modified Paths:
--------------
pygccxml_dev/pygccxml/declarations/algorithm.py
Modified: pygccxml_dev/pygccxml/declarations/algorithm.py
===================================================================
--- pygccxml_dev/pygccxml/declarations/algorithm.py 2006-05-11 07:37:35 UTC (rev 67)
+++ pygccxml_dev/pygccxml/declarations/algorithm.py 2006-05-14 07:17:02 UTC (rev 68)
@@ -38,7 +38,8 @@
@return: full name of declarations.
"""
- assert decl
+ if None is decl:
+ raise RuntimeError( "Unable to generate full name for None object!" )
decl_path = declaration_path( decl )
##Here I have lack of knowledge:
##TODO: "What is the full name of declaration declared in unnamed namespace?"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|