File subversion-1.8.11-swig-py-comment-2.patch of Package subversion.5701

------------------------------------------------------------------------
r1658347 | brane | 2015-02-09 11:23:53 +0100 (Mon, 09 Feb 2015) | 6 lines
Changed paths:
   M /subversion/trunk/subversion/bindings/swig/svn_delta.i

Partial fix for bindings build with Swig 3.0.x; fixes swig-pl and swig-rb.

* subversion/bindings/swig/svn_delta.i:
   Escape Python code block so that Swig doesn't error out on the comments,
   thinking they're unknown directives.

------------------------------------------------------------------------
Index: subversion/bindings/swig/svn_delta.i
===================================================================
--- subversion/bindings/swig/svn_delta.i	(revision 1658346)
+++ subversion/bindings/swig/svn_delta.i	(revision 1658347)
@@ -205,11 +205,11 @@
 %include svn_delta_h.swg
 
 #ifdef SWIGPYTHON
-%pythoncode {
+%pythoncode %{
 # This function is for backwards compatibility only.
 # Use svn_txdelta_window_t.ops instead.
 svn_txdelta_window_t_ops_get = svn_txdelta_window_t._ops_get
-}
+%}
 #endif
 
 #ifdef SWIGRUBY
openSUSE Build Service is sponsored by