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:
parent
4fe0c9530d
commit
2474310a5e
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue