diff --git a/pyste/src/ClassExporter.py b/pyste/src/ClassExporter.py index e6d5bb6b..63bc26f3 100644 --- a/pyste/src/ClassExporter.py +++ b/pyste/src/ClassExporter.py @@ -747,7 +747,7 @@ class _VirtualWrapperGenerator(object): This method creates the instance variable self.virtual_methods. ''' def IsVirtual(m): - return isinstance(m, Method) and m.virtual and m.visibility != Scope.private + return type(m) is Method and m.virtual and m.visibility != Scope.private all_methods = [x for x in self.class_.members if IsVirtual(x)] for base in self.bases: diff --git a/pyste/src/pyste.py b/pyste/src/pyste.py index 6aa4f7b6..a608a8df 100644 --- a/pyste/src/pyste.py +++ b/pyste/src/pyste.py @@ -37,7 +37,7 @@ from policies import * from CppParser import CppParser, CppParserError import time -__VERSION__ = '0.8.0' +__VERSION__ = '0.8.1' def RecursiveIncludes(include): 'Return a list containg the include dir and all its subdirectories'