diff --git a/Source/Modules/allocate.cxx b/Source/Modules/allocate.cxx index 78797922b..9f4dae3a2 100644 --- a/Source/Modules/allocate.cxx +++ b/Source/Modules/allocate.cxx @@ -467,8 +467,8 @@ class Allocate : public Dispatcher { } Node *c = Swig_symbol_clookup(t,0); if (c) { - if (!Getattr(c,"feature:exceptionclass")) { - Setattr(c,"feature:exceptionclass","1"); + if (!GetFlag(c,"feature:exceptionclass")) { + SetFlag(c,"feature:exceptionclass"); } } p = nextSibling(p); diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 9d8b5abf0..b08123464 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -1954,7 +1954,7 @@ public: have_constructor = 0; have_repr = 0; - if (checkAttribute(n,"feature:exceptionclass","1")) { + if (GetFlag(n,"feature:exceptionclass")) { classic = 1; modern = 0; }