Use %{ %} instead of { } after %pythoncode

Simpler and safer change to address PR#357.
This commit is contained in:
Olly Betts 2015-03-20 13:45:19 +13:00
commit c8a7322a4d
6 changed files with 23 additions and 23 deletions

View file

@ -1,7 +1,7 @@
%define %pythonabc(Type, Abc)
%feature("python:abc", #Abc) Type;
%enddef
%pythoncode {import collections};
%pythoncode %{import collections%}
%pythonabc(std::vector, collections.MutableSequence);
%pythonabc(std::list, collections.MutableSequence);
%pythonabc(std::map, collections.MutableMapping);