change runtime examples to run with old python versions

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8378 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-11 23:13:23 +00:00
commit 2474310a5e

View file

@ -6,15 +6,15 @@ class MyBar(director_detect.Bar):
self.val = val
def get_value(self):
self.val += 1
self.val = self.val + 1
return self.val
def get_class(self):
self.val += 1
self.val = self.val + 1
return director_detect.A()
def just_do_it(self):
self.val += 1
self.val = self.val + 1
def clone(self):
return MyBar(self.val)