From 46263199b864de68dac8ad65fe207d49ab70460f Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 25 Nov 2012 14:12:44 -0800 Subject: make use of PMC/Registry.i in SBuffer binding --- python/gras/GRAS_Block.i | 2 +- python/gras/GRAS_SBuffer.i | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'python/gras') diff --git a/python/gras/GRAS_Block.i b/python/gras/GRAS_Block.i index 0becfd0..14809a9 100644 --- a/python/gras/GRAS_Block.i +++ b/python/gras/GRAS_Block.i @@ -16,7 +16,7 @@ //////////////////////////////////////////////////////////////////////// // http://www.swig.org/Doc2.0/Library.html#Library_stl_exceptions //////////////////////////////////////////////////////////////////////// -%include "exception.i" +%include %exception { diff --git a/python/gras/GRAS_SBuffer.i b/python/gras/GRAS_SBuffer.i index 8b57863..74cc475 100644 --- a/python/gras/GRAS_SBuffer.i +++ b/python/gras/GRAS_SBuffer.i @@ -2,18 +2,12 @@ %include -%{ -#include -%} - -%import +%include DECL_PMC_SWIG_TYPE(gras::SBuffer, swig_sbuffer) %pythoncode %{ -from PMC import * - def pmc_to_sbuffer(p): s = pmc_to_swig_sbuffer(p) setattr(s, 'readonly', not isinstance(p, PMC)) -- cgit