On 13.07.2015 11:04, jorton_at_apache.org wrote:
> Author: jorton
> Date: Mon Jul 13 09:04:13 2015
> New Revision: 1690591
>
> URL: http://svn.apache.org/r1690591
> Log:
> * subversion/bindings/swig/include/proxy.swg:
> Use %{ %} with %pythoncode so comments avoid the SWIG preprocessor,
> fixing the bindings with SWIG 3.0.6.
>
> Modified:
> subversion/trunk/subversion/bindings/swig/include/proxy.swg
>
> Modified: subversion/trunk/subversion/bindings/swig/include/proxy.swg
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/include/proxy.swg?rev=1690591&r1=1690590&r2=1690591&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/bindings/swig/include/proxy.swg (original)
> +++ subversion/trunk/subversion/bindings/swig/include/proxy.swg Mon Jul 13 09:04:13 2015
> @@ -62,7 +62,7 @@
>
> /* Default code for all wrapped proxy classes in Python */
> %define %proxy_pythoncode(TYPE)
> -%pythoncode {
> +%pythoncode %{
> def set_parent_pool(self, parent_pool=None):
> """Create a new proxy object for TYPE"""
> import libsvn.core, weakref
> @@ -104,7 +104,7 @@
> self.__dict__.setdefault("_members",{})[name] = value
>
> return _swig_setattr(self, self.__class__, name, value)
> -}
> +%}
> %enddef
>
> /* Define a proxy for wrapping an existing struct */
I've tried this before and it didn't fix the bindings at all.
-- Brane
Received on 2015-07-13 11:08:06 CEST