Revision: 479
Author: allenb
Date: 2006-08-27 13:45:41 -0700 (Sun, 27 Aug 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=479&view=rev
Log Message:
-----------
Fix mdecl override.
Modified Paths:
--------------
pyplusplus_dev/contrib/goodies/goodie_overrides.py
Modified: pyplusplus_dev/contrib/goodies/goodie_overrides.py
===================================================================
--- pyplusplus_dev/contrib/goodies/goodie_overrides.py 2006-08-27 18:49:18 UTC (rev 478)
+++ pyplusplus_dev/contrib/goodies/goodie_overrides.py 2006-08-27 20:45:41 UTC (rev 479)
@@ -10,8 +10,9 @@
#
# --- Over ride the behavior of mdecl_wrapper ---- #
-import pygccxml.declarations.mdecl_wrapper as mdecl_wrapper
+import pygccxml.declarations
pd = pygccxml.declarations
+mdecl_wrapper = pd.mdecl_wrapper
# Define the call redirector so it can return arguments
# This method will now return multiple arguments by
@@ -55,7 +56,7 @@
Else call the getitem method of the contained decls.
"""
if isinstance(index, (int, slice)):
- return self.decls[index]
+ return self.declarations[index]
else:
return self.__getattr__("__getitem__")(index)
mdecl_wrapper.mdecl_wrapper_t.__getitem__ = new_mdecl_wrapper_t__getitem__
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|