Use rstrip instead of regex encoder in %feature_rename

The regex encoder is not always available in SWIG builds.
This commit is contained in:
William S Fulton 2016-03-01 20:53:58 +00:00
commit 7f3f8fd76a
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ INTERFACE_TYPEMAPS(CTYPE)
%define %interface_impl(CTYPE...)
%rename("%sSwigImpl") CTYPE;
%feature("interface", name="%(regex:/(.*)SwigImpl$/\\1/)s") CTYPE;
%feature("interface", name="%(rstrip:[SwigImpl])s") CTYPE;
INTERFACE_TYPEMAPS(CTYPE)
%enddef