From bc112ba65fcea97a702b4bc0d270fc12180a2142 Mon Sep 17 00:00:00 2001 From: Bruno da Silva de Oliveira Date: Fri, 30 May 2003 21:52:33 +0000 Subject: [PATCH] - Fixed bug in the generation of virtual methods. [SVN r18619] --- pyste/src/ClassExporter.py | 2 +- pyste/src/pyste.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'